Jamshaid | 1 Apr 2012 01:10

virsh - specifying openvz vm sample in domain creation xml

Hello

I need to specify the "vm sample name" in domain creation xml. This is 
the option which is provided to vzctl wtih  --config parameter,  I can 
see that in openvz_driver.c there is below code .....

if ((vmdef->profile && *(vmdef->profile))) {
         ADD_ARG_LIT("--config");
         ADD_ARG_LIT(vmdef->profile);
}

But i am not sure what to put in "domain creation xml" to avail that 
option ? I cant find anything about it in documentation or around google.

Regards

James
Dale Amon | 1 Apr 2012 02:09
Gravatar

Re: Suggestions on building VM disks from scratch

On Sat, Mar 31, 2012 at 04:37:54PM -0600, Eric Blake wrote:
> On 03/31/2012 01:39 PM, Dale Amon wrote:
> 
> > I need to define a procedure for last resort disaster 
> > recovery from an incremental file level backup of the 
> > root partition (and any others that are critical.)
> > 
> > Now it is easy enough to create a raw virtual disk
> > with dd, then to losetup and do a cfdisk and mkfs, 
> > then mount it and rsync the backup onto it.
> 
> It sounds like you want to use the features of libguestfs, possibly via
> the command line program 'virt-rescue'; see http://libguestfs.org for
> more details about what this can let you do.

It looks really nice. But not an easy fix. I'm
at the moment crossing my fingers and running an
update to pre-release Ubuntu Precise on my test
box... I need to confer with another person before
adding in the backports.org version to get it on
our squeeze based production server. One does not
do such things lightly on production boxes!
Shweta Shinde | 2 Apr 2012 14:08
Picon

libvirt-lxc Cannot SSH into container

Hi,
I am trying to run containers on rhel 6.2 using libvirt-lxc.
I want to migrate my containers from sf.net lxc to libvirt-lxc. So, I am using the same root file system for libvirt-lxc, which I used for sf.net lxc.
After starting the container, and getting console for it, I can see the boot log for the container, it shows all the services started successfully. I get ping reply from the IP assigned to this container, but cannot ssh into the container. After entering the password for ssh, connection closed error comes up.
I tried chroot to the root filesystem, and checked sshd service status. It shows that sshd is stopped. Also the /proc of container is empty.
Am I missing out something in configuration?
This is my xml file for container
<domain type='lxc'>
    <name>test01</name>
    <memory>332768</memory>
    <os>
        <type>exe</type>
        <init>/sbin/init</init>
    </os>
    <vcpu>1</vcpu>
    <clock offset='utc'/>
    <on_poweroff>destroy</on_poweroff>
    <on_reboot>restart</on_reboot>
    <on_crash>destroy</on_crash>
    <devices>
        <filesystem type='mount'>
            <source dir='/srv/lxc/test01'/>
            <target dir='/'/>
        </filesystem>
        <interface type='network'>
            <source network='default'/>
        </interface>
        <console type='pty' />
    </devices>
</domain>

Thanks,
Shweta

_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
Eric Blake | 2 Apr 2012 20:14
Picon
Favicon
Gravatar

call for volunteer: FLOSS weekly podcast opportunity

The FLOSS weekly podcast is interested in doing an interview about
libvirt development on June 6, at 9:30am Los Angeles time (UTC-7).  For
more information on past podcasts, see:

http://twit.tv/show/floss-weekly

With prodding from Justin Clift, I have volunteered to take on the task,
but the show host, Randal, prefers to have two developers per show, so
I'm looking for anyone else who has developed for or with libvirt, who
would be interested in sharing the opportunity.  You don't have to have
a lot of commits under your belt, so much as having enough active
interest in the project and what it enables you to do.  In fact, having
someone not directly tied to Red Hat as the second contact will probably
provide a nicer balance to the interview.

--

-- 
Eric Blake   eblake@...    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
Dale Amon | 2 Apr 2012 21:45
Gravatar

Reality check requested...

Is this going to do what I think it will
do? ie will the output be runable on a
current licensed vmware server?

qemu-img convert -f raw test.img -O vmdk test.vmdk
Eric Blake | 2 Apr 2012 21:52
Picon
Favicon
Gravatar

Re: Reality check requested...

On 04/02/2012 01:45 PM, Dale Amon wrote:
> Is this going to do what I think it will
> do? ie will the output be runable on a
> current licensed vmware server?
> 
> qemu-img convert -f raw test.img -O vmdk test.vmdk

I don't know, since qemu-img is not maintained by libvirt.  It's worth
asking this on the qemu lists instead.

--

-- 
Eric Blake   eblake@...    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
Andrew Cathrow | 2 Apr 2012 22:11
Picon
Favicon

Re: Reality check requested...


----- Original Message -----
> From: "Eric Blake" <eblake@...>
> To: "Dale Amon" <amon@...>
> Cc: libvirt-users@...
> Sent: Monday, April 2, 2012 3:52:02 PM
> Subject: Re: [libvirt-users] Reality check requested...
> 
> On 04/02/2012 01:45 PM, Dale Amon wrote:
> > Is this going to do what I think it will
> > do? ie will the output be runable on a
> > current licensed vmware server?
> > 
> > qemu-img convert -f raw test.img -O vmdk test.vmdk
> 

The disk format should be fine but the VM may not work you didn't say what kind of VM it is - for example is it
KVM/Xen/etc 
VMware uses different emulated hardware and different drivers so your mileage my vary.

> I don't know, since qemu-img is not maintained by libvirt.  It's
> worth
> asking this on the qemu lists instead.
> 
> --
> Eric Blake   eblake@...    +1-919-301-3266
> Libvirt virtualization library http://libvirt.org
> 
> 
> _______________________________________________
> libvirt-users mailing list
> libvirt-users@...
> https://www.redhat.com/mailman/listinfo/libvirt-users
Bo Bo | 3 Apr 2012 01:27
Picon
Favicon

(no subject)

_______________________________________________
libvirt-users mailing list
libvirt-users@...
https://www.redhat.com/mailman/listinfo/libvirt-users
Dale Amon | 3 Apr 2012 02:24
Gravatar

Re: Reality check requested...

On Mon, Apr 02, 2012 at 04:11:17PM -0400, Andrew Cathrow wrote:
> The disk format should be fine but the VM may not work you didn't say what kind of VM it is - for example is it
KVM/Xen/etc 
> VMware uses different emulated hardware and different drivers so your mileage my vary.

This particular test was a linux Ubuntu server built
this weekend via virt-manager. The goal is to be able
to build a disk with the tools I have in linux and
ship it to someone who is running a current licensed
ESX version.

I had the impression that libvirt could handle a vmdk
from a VMware server; but can it go the other way?
Andrew Cathrow | 3 Apr 2012 08:57
Picon
Favicon

Re: Reality check requested...


----- Original Message -----
> From: "Dale Amon" <amon@...>
> To: "Andrew Cathrow" <acathrow@...>
> Cc: "Dale Amon" <amon@...>,
libvirt-users@..., "Eric Blake" <eblake@...>
> Sent: Monday, April 2, 2012 8:24:16 PM
> Subject: Re: [libvirt-users] Reality check requested...
> 
> On Mon, Apr 02, 2012 at 04:11:17PM -0400, Andrew Cathrow wrote:
> > The disk format should be fine but the VM may not work you didn't
> > say what kind of VM it is - for example is it KVM/Xen/etc
> > VMware uses different emulated hardware and different drivers so
> > your mileage my vary.
> 
> This particular test was a linux Ubuntu server built
> this weekend via virt-manager. The goal is to be able
> to build a disk with the tools I have in linux and
> ship it to someone who is running a current licensed
> ESX version.
> 
> I had the impression that libvirt could handle a vmdk
> from a VMware server; but can it go the other way?

it's not about libvirt it's about your hypervisor.
You say virt-manager but that could be kvm, qemu or xen. I'll presume kvm for now.
KVM emulates a different set of hardware components than VMware does - eg. PIIX3 chipset, IDE (or virtio),
ich9 (or maybe ac96/es1379) soundcard, etc
When you take a VM from one platform to another it will see different hardware - eg. it might see SCSI on VMware.
Linux is much better than Windows at adjusting to hardware changes but you have to be careful about how you
configure the guest - eg. use emulation (IDE) rather that paravirt devices (VirtIO) that means you lose
performance but are more likely for the VM to boot on VMware.

> 
> 
> 

Gmane