Re: [libvirt-users] Problems with libvirt / qemu
by Dan Johansson
Yes, the image contains an OS (it works if I start the guest manually).
--
Dan
On Monday 11 October 2010 03.41:29 jbuy0710 wrote:
> The image contains an OS or not?
> If not, you can't choose to boot from disk like "<boot dev='hd'/>"
>
> 2010/10/10 Dan Johansson <kvm(a)dmj.nu>:
> > HI,
> >
> > I have a small problem with libvirt / qemu. I have created a guest and when I start it from the command-line the guests starts OK, but when I start the guest through libvirt with "virsh start" I get "Booting from Hard Disk...
> > Boot failed: not a bootable disk
> > No bootable device"
> >
> > This is the command-line I use to start the guest (which works)
> > "cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \
> > -net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \
> > -net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \
> > -m 2048 -k de-ch -vnc :3 -daemonize \
> > Wilmer.qcow2"
> >
> >
> > The libvirt XML-file was created using "virsh domxml-from-native qemu-argv" and this is the result of that conversion:
> > <domain type='kvm'>
> > <name>wilmer</name>
> > <uuid>a421968d-0573-1356-8cb7-32caff525a03</uuid>
> > <memory>2097152</memory>
> > <currentMemory>2097152</currentMemory>
> > <vcpu>2</vcpu>
> > <os>
> > <type arch='x86_64' machine='pc-0.12'>hvm</type>
> > <boot dev='hd'/>
> > </os>
> > <features>
> > <acpi/>
> > </features>
> > <clock offset='utc'/>
> > <on_poweroff>destroy</on_poweroff>
> > <on_reboot>restart</on_reboot>
> > <on_crash>destroy</on_crash>
> > <devices>
> > <emulator>/usr/bin/qemu-system-x86_64</emulator>
> > <disk type='file' device='disk'>
> > <source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/>
> > <target dev='hda' bus='ide'/>
> > <address type='drive' controller='0' bus='0' unit='0'/>
> > </disk>
> > <controller type='ide' index='0'>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
> > </controller>
> > <interface type='ethernet'>
> > <mac address='de:ed:be:ef:01:03'/>
> > <script path='no'/>
> > <target dev='qtap13'/>
> > <model type='rtl8139'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
> > </interface>
> > <interface type='ethernet'>
> > <mac address='de:ed:be:ef:03:03'/>
> > <script path='no'/>
> > <target dev='qtap33'/>
> > <model type='rtl8139'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
> > </interface>
> > <input type='mouse' bus='ps2'/>
> > <graphics type='vnc' port='5903' autoport='no' listen=''/>
> > <video>
> > <model type='cirrus' vram='9216' heads='1'/>
> > <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
> > </video>
> > </devices>
> > </domain>
> >
> >
> > Anyone seeing something obvious that I have missed?
> >
> > Regards,
> > --
> > Dan Johansson, <http://www.dmj.nu>
> > ***************************************************
> > This message is printed on 100% recycled electrons!
> > ***************************************************
> >
> > _______________________________________________
> > libvirt-users mailing list
> > libvirt-users(a)redhat.com
> > https://www.redhat.com/mailman/listinfo/libvirt-users
> >
>
--
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
14 years, 1 month
[libvirt-users] Problems with libvirt / qemu
by Dan Johansson
HI,
I have a small problem with libvirt / qemu. I have created a guest and when I start it from the command-line the guests starts OK, but when I start the guest through libvirt with "virsh start" I get "Booting from Hard Disk...
Boot failed: not a bootable disk
No bootable device"
This is the command-line I use to start the guest (which works)
"cd /var/lib/kvm/Wilmer; /usr/bin/qemu-system-x86_64 --enable-kvm \
-net nic,vlan=1,model=rtl8139,macaddr=DE:ED:BE:EF:01:03 -net tap,vlan=1,ifname=qtap13,script=no,downscript=no \
-net nic,vlan=3,model=rtl8139,macaddr=DE:ED:BE:EF:03:03 -net tap,vlan=3,ifname=qtap33,script=no,downscript=no \
-m 2048 -k de-ch -vnc :3 -daemonize \
Wilmer.qcow2"
The libvirt XML-file was created using "virsh domxml-from-native qemu-argv" and this is the result of that conversion:
<domain type='kvm'>
<name>wilmer</name>
<uuid>a421968d-0573-1356-8cb7-32caff525a03</uuid>
<memory>2097152</memory>
<currentMemory>2097152</currentMemory>
<vcpu>2</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
</features>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/kvm/Wilmer/Wilmer.qcow2'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='ide' index='0'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
</controller>
<interface type='ethernet'>
<mac address='de:ed:be:ef:01:03'/>
<script path='no'/>
<target dev='qtap13'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
</interface>
<interface type='ethernet'>
<mac address='de:ed:be:ef:03:03'/>
<script path='no'/>
<target dev='qtap33'/>
<model type='rtl8139'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='5903' autoport='no' listen=''/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
</video>
</devices>
</domain>
Anyone seeing something obvious that I have missed?
Regards,
--
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************
14 years, 1 month
[libvirt-users] Error while starting the domain "error: monitor socket did not show up.: Connection refused"
by Ravi Pawar
All,
here is my domain xml
<domain type='kvm'>
<name>tests</name>
<uuid>76bc677f-ee5b-ef0b-1d02-72d12785b1d8</uuid>
<memory>524288</memory>
<currentMemory>524288</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64' machine='pc-0.12'>hvm</type>
<boot dev='network'/>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<source file='/var/lib/libvirt/images/testKVM'/>
<target dev='hda' bus='ide'/>
<address type='drive' controller='0' bus='0' unit='0'/>
</disk>
<controller type='ide' index='0'/>
<interface type='network'>
<mac address='52:54:00:a4:0e:ce'/>
<source network='default'/>
<target dev='vnet0'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' autoport='yes' listen='127.0.0.1'
keymap='en-us'/>
<video>
<model type='cirrus' vram='9216' heads='1'/>
</video>
</devices>
</domain>
my host is RHEL 6 beta.
i don't have any clue where i am going wrong in the configuration of the
host or configuration of the domain.
--
Thanks & Regards
Ravi Pawar
14 years, 1 month
[libvirt-users] Ruby-libvirt and openAuth
by Jonathan Kelley
Hello,
It looks like the Ruby bindings do not support virConnectOpenAuth. Is this
true? If so, is there any reason why? or plans to?
Thanks,
Jon
14 years, 1 month
[libvirt-users] Monitoring and statistics through libvirt
by Tomi
Hi folks,
is it possible to monitor and gather statistics in realtime (CPU,
memory, HDD, network, ... - something like dstat) of guest systems
with libvirt through console from host system (KVM based)? If yes, do
those guests need to be created through libvirt? Thanks for your help
and time.
14 years, 1 month
[libvirt-users] [PATCH] Re: Python XML parsing of domain descriptions?
by James M Leddy
rp.gs.com>
Jon,
Would you try with this patch?
diff -c libvirt-0.6.3/docs/schemas/domain.rng libvirt-0.6.3.updateschema/docs/schemas/domain.rng
*** libvirt-0.6.3/docs/schemas/domain.rng 2010-07-23 12:44:45.000000000 -0400
--- libvirt-0.6.3.updateschema/docs/schemas/domain.rng 2010-10-05 14:17:16.700561725 -0400
***************
*** 150,155 ****
--- 150,156 ----
</attribute>
<attribute name="machine">
<choice>
+ <value>rhel5.4.0</value>
<value>xenfv</value>
<value>pc</value>
<value>isapc</value>
--
James M. Leddy
Technical Account Manager
Red Hat Inc.
14 years, 1 month
[libvirt-users] KVM Live Migration
by Mike Hall
We have the following test environment:
2 x CentOS 5.5 KVM virtual hosts
2 x CentOS 5.5 network storage boxes with NFS shares on LVs on DRBD (primary/secondary, no HA, just replication).
We have installed both CentOS and Win7 guests which live migrate almost instantly between hosts using Virt Manager (or virsh migrate). The problem is that the guests does not retain their running state after migration, but instead arrive on the new host in "reboot after unclean shutdown" state.
The migrated machines also lose IP connectivity (static IP) upon migration to new host, but regain it on migration back to original host.
So, live migration in this case isn't producing the expected results (a running, usable guest). Same results using "migrate offline" option and pausing machines before migration.
Any pointers on what we're doing wrong?
Is there a need for us to implement hook scripts?
Michael Hall
IT Communications Officer
Alice Springs Town Council
mhall(a)astc.nt.gov.au
(08) 8950 0561
14 years, 1 month
[libvirt-users] Mounting an lvm
by Dale Amon
I converted a system disk from a virtualbox
VM and added to the config on a qemu VM.
All seems well until I try to mount it. The
virtual machine shows data for the disk
image using commands like:
pvs
lvs
lvdisplay xena-1
but there is no /dev/xena-1/root to be
mounted. I also cannot seem to figure out
whether the lvm related modules are available
for the virtual machine kernel.
Has anyone else tried playing this game?
14 years, 1 month
[libvirt-users] Puppet Module for Virtualization Management
by Carla Araujo
Hi all!
Puppet [0] is an Open Source data center automation and configuration
management framework. Puppet provides system administration with a
simplified platform that allows for consistent, transparent, and flexible
system management. Puppet can be extended with new modules, which are
reusable, sharable units of Puppet code.
This year, during the Google Summer of Code [1], I developed a new Puppet's
module: Puppet-virt. Puppet-virt [2] provides a new type that allows the
administrator to deploy and manage virtual machines using r *uby-libvirt* .
At first, only Xen fullyvirtualization, Xen paravirtualization, KVM and
OpenVZ are supported.
If you have any suggestion or contribution, fell free to contact me and/or
fork the repository at github. :)
Regards,
Carla Souza
[0] http://www.puppetlabs.com/
[1] http://socghop.appspot.com/
[2] http://github.com/carlasouza/puppet-virt
14 years, 1 month
[libvirt-users] LXC
by Papp Tamás
hi All,
I'm new to this list and also not a professional libvirt user:)
I'm trying to use it for running a container.
This is my config:
<domain type='lxc'>
<name>test</name>
<uuid>d3667da2-061a-7b20-a29c-3afc798a257e</uuid>
<memory>500000</memory>
<currentMemory>500000</currentMemory>
<vcpu>1</vcpu>
<os>
<type arch='x86_64'>exe</type>
<init>/sbin/init</init>
</os>
<clock offset='utc'/>
<on_poweroff>destroy</on_poweroff>
<on_reboot>restart</on_reboot>
<on_crash>destroy</on_crash>
<devices>
<emulator>/usr/lib/libvirt/libvirt_lxc</emulator>
<filesystem type='mount'>
<source dir='/data/lxc/test/rootfs'/>
<target dir='/'/>
</filesystem>
<interface type='bridge'>
<mac address='52:54:00:b8:a7:80'/>
<source bridge='br1'/>
<target dev='veth0'/>
</interface>
<console type='pty'>
<target type='serial' port='0'/>
</console>
</devices>
</domain>
It's up and running after start:
3141 ? Ss 0:00 /usr/lib/libvirt/libvirt_lxc --name test
--console 107 --background --veth veth1
3148 pts/0 Ss+ 0:00 \_ /sbin/init
3158 ? S<s 0:00 \_ udevd --daemon
3641 ? S< 0:00 | \_ udevd --daemon
3643 ? S< 0:00 | \_ udevd --daemon
3690 ? Sl 0:00 \_ rsyslogd -c4
3703 ? Ss 0:00 \_ /usr/sbin/sshd
3730 ? Ss 0:00 \_ cron
3767 ? Ssl 0:00 \_ /usr/sbin/nscd
3818 ? Ss 0:00 \_ /usr/sbin/munin-node
3989 ? Ss 0:00 \_ /usr/lib/postfix/master
3996 ? S 0:00 | \_ pickup -l -t fifo -u -c
3997 ? S 0:00 | \_ qmgr -l -t fifo -u
3998 ? Ss 0:00 \_ /sbin/getty -8 38400 tty1
I'm trying to connect to the console:
$ virsh --connect=lxc:/// console test
Connected to domain test
Escape character is ^]
And it got off:
$ virsh --connect=lxc:/// list --all
Id Name State
----------------------------------
- test shut off
/var/log/libvirt/lxc/test.log:
23:17:13.463: error : lxcFdForward:231 : read of fd 7 failed:
Input/output error
The system is Ubuntu 10.10 beta, 2.6.35-22-server and libvirt
0.8.3-1ubuntu14.
What's wrong? I am out of idea.
Thank you,
tamas
14 years, 1 month