can`t start guestfsd daemon inside guest
hi Mr Rich As you recommended, I switched to Fedora 16. I also built a guest machine with Fedora 16 Mini version. Inside the guest I installed libguestfs-live-service package but I failed to start the guestfsd daemon : [root@Fedora16 ~]# guestfsd -vr verbose daemon enabled linux commmand line: BOOT_IMAGE=/vmlinuz-3.2.7-1.fc16.i686.PAE root=/dev/mapper/vg_fedora16-lv_root ro rd.md=0 rd.dm=0 KEYTABLE=us quiet rd.lvm.lv=vg_fedora16/lv_root rhgb rd.lvm.lv=vg_fedora16/lv_swap rd.luks=0 SYSFONT=latarcyrheb-sun16 LANG=en_US.UTF-8 Failed to connect to virtio-serial channel. This is a fatal error and the appliance will now exit. Usually this error is caused by either QEMU or the appliance kernel not supporting the vmchannel method that the libguestfs library chose to use. Please run 'libguestfs-test-tool' and provide the complete, unedited output to the libguestfs developers, either in a bug report or on the libguestfs redhat com mailing list. /dev/virtio-ports/org.libguestfs.channel.0: No such file or directory Moreover, I managed VMs with virt-manager, and I tried to edit the XML file of the guest from the path /etc/libvirt/qemu/FedoraMini16.xml (FedoraMini16 is the name of the guest), here is the content of the xml file <!-- WARNING: THIS IS AN AUTO-GENERATED FILE. CHANGES TO IT ARE LIKELY TO BE OVERWRITTEN AND LOST. Changes to this xml configuration should be made using: virsh edit FedoraMini16 or other application using the libvirt API. --> <domain type='kvm'> <name>FedoraMini16</name> <uuid>9d33d233-cedc-fd7c-658e-578358b7f7cf</uuid> <memory>1048576</memory> <currentMemory>1048576</currentMemory> <vcpu>1</vcpu> <os> <type arch='i686' machine='pc-0.14'>hvm</type> <boot dev='hd'/> </os> <features> <acpi/> <apic/> <pae/> </features> <clock offset='utc'/> <on_poweroff>destroy</on_poweroff> <on_reboot>restart</on_reboot> <on_crash>restart</on_crash> <devices> <emulator>/usr/bin/qemu-kvm</emulator> <disk type='file' device='disk'> <driver name='qemu' type='qcow2'/> <source file='/home/feeliwood/VMs/Fedora16Mini/Fedora16Mini.qcow2'/> <target dev='vda' bus='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/> </disk> <interface type='network'> <mac address='52:54:00:ae:47:e7'/> <source network='default'/> <model type='virtio'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/> </interface> <serial type='pty'> <target port='0'/> </serial> <console type='pty'> <target type='serial' port='0'/> </console> <input type='tablet' bus='usb'/> <input type='mouse' bus='ps2'/> <graphics type='vnc' port='-1' autoport='yes'/> <sound model='ich6'> <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/> </sound> <video> <model type='cirrus' vram='9216' heads='1'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/> </video> <memballoon model='virtio'> <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/> </memballoon> <channel type='unix'> <source mode='bind'path='/var/lib/libvirt/qemu/FedoraMini16.libguestfs' /> <target type='virtio'name='org.libguestfs.channel.0'/> </channel> </devices> </domain> but whenever I restart the guest with virt-manager, the clause that I added was deleted. could you help me please !!! thank you
On Sat, Mar 03, 2012 at 06:13:48PM -0800, THO HUYNH wrote:
<channel type='unix'> <source mode='bind'path='/var/lib/libvirt/qemu/FedoraMini16.libguestfs' /> <target type='virtio'name='org.libguestfs.channel.0'/> </channel> </devices>
but whenever I restart the guest with virt-manager, the clause that I added was deleted. could you help me please !!!
As you've pasted it above, the clause is wrong. It is missing spaces in important places (eg. mode='bind'path should be mode='bind' path) Start with this simple example: <channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel> Make sure you copy it accurately. Use 'virsh edit <Guest>' to edit the guest XML, and 'virsh domxml <Guest>' to check that the clause you tried to add is present. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
hi Mr Rich. I did it :) I can mount, modify the file system on the running guest and the guest update properly :) Although I still failed to run the guestfsd daemon inside the guest machine but everything worked properly. I don`t understand why. Can you explain? By the way, I used guestmount to mount the running guest. Thanks :) ________________________________ From: Richard W.M. Jones <rjones@redhat.com> To: THO HUYNH <feeliwood@yahoo.com> Cc: "libguestfs@redhat.com" <libguestfs@redhat.com> Sent: Sunday, 4 March 2012, 17:09 Subject: Re: can`t start guestfsd daemon inside guest On Sat, Mar 03, 2012 at 06:13:48PM -0800, THO HUYNH wrote:
<channel type='unix'> <source mode='bind'path='/var/lib/libvirt/qemu/FedoraMini16.libguestfs' /> <target type='virtio'name='org.libguestfs.channel.0'/> </channel> </devices>
but whenever I restart the guest with virt-manager, the clause that I added was deleted. could you help me please !!!
As you've pasted it above, the clause is wrong. It is missing spaces in important places (eg. mode='bind'path should be mode='bind' path) Start with this simple example: <channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel> Make sure you copy it accurately. Use 'virsh edit <Guest>' to edit the guest XML, and 'virsh domxml <Guest>' to check that the clause you tried to add is present. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
On 03/04/2012 10:16 PM, THO HUYNH wrote:
hi Mr Rich. I did it :) I can mount, modify the file system on the running guest and the guest update properly :) Although I still failed to run the guestfsd daemon inside the guest machine but everything worked properly. I don`t understand why. Can you explain? By the way, I used guestmount to mount the running guest.
guestmount can run guestfsd inside the small guest automatically. Thanks -Wanlong Gao
Thanks :)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ *From:* Richard W.M. Jones <rjones@redhat.com> *To:* THO HUYNH <feeliwood@yahoo.com> *Cc:* "libguestfs@redhat.com" <libguestfs@redhat.com> *Sent:* Sunday, 4 March 2012, 17:09 *Subject:* Re: can`t start guestfsd daemon inside guest
On Sat, Mar 03, 2012 at 06:13:48PM -0800, THO HUYNH wrote:
<channel type='unix'> <source mode='bind'path='/var/lib/libvirt/qemu/FedoraMini16.libguestfs' /> <target type='virtio'name='org.libguestfs.channel.0'/> </channel> </devices>
but whenever I restart the guest with virt-manager, the clause that I added was deleted. could you help me please !!!
As you've pasted it above, the clause is wrong. It is missing spaces in important places (eg. mode='bind'path should be mode='bind' path)
Start with this simple example:
<channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel>
Make sure you copy it accurately.
Use 'virsh edit <Guest>' to edit the guest XML, and 'virsh domxml <Guest>' to check that the clause you tried to add is present.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones <http://people.redhat.com/%7Erjones> Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
thank you Wanlong Gao :) ________________________________ From: Wanlong Gao <gaowanlong@cn.fujitsu.com> To: THO HUYNH <feeliwood@yahoo.com> Cc: Richard W.M. Jones <rjones@redhat.com>; "libguestfs@redhat.com" <libguestfs@redhat.com> Sent: Sunday, 4 March 2012, 21:31 Subject: Re: [Libguestfs] can`t start guestfsd daemon inside guest On 03/04/2012 10:16 PM, THO HUYNH wrote:
hi Mr Rich. I did it :) I can mount, modify the file system on the running guest and the guest update properly :) Although I still failed to run the guestfsd daemon inside the guest machine but everything worked properly. I don`t understand why. Can you explain? By the way, I used guestmount to mount the running guest.
guestmount can run guestfsd inside the small guest automatically. Thanks -Wanlong Gao
Thanks :)
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ *From:* Richard W.M. Jones <rjones@redhat.com> *To:* THO HUYNH <feeliwood@yahoo.com> *Cc:* "libguestfs@redhat.com" <libguestfs@redhat.com> *Sent:* Sunday, 4 March 2012, 17:09 *Subject:* Re: can`t start guestfsd daemon inside guest
On Sat, Mar 03, 2012 at 06:13:48PM -0800, THO HUYNH wrote:
<channel type='unix'> <source mode='bind'path='/var/lib/libvirt/qemu/FedoraMini16.libguestfs' /> <target type='virtio'name='org.libguestfs.channel.0'/> </channel> </devices>
but whenever I restart the guest with virt-manager, the clause that I added was deleted. could you help me please !!!
As you've pasted it above, the clause is wrong. It is missing spaces in important places (eg. mode='bind'path should be mode='bind' path)
Start with this simple example:
<channel type='unix'> <source mode='bind' path='/tmp/socket'/> <target type='virtio' name='org.libguestfs.channel.0'/> </channel>
Make sure you copy it accurately.
Use 'virsh edit <Guest>' to edit the guest XML, and 'virsh domxml <Guest>' to check that the clause you tried to add is present.
Rich.
-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones <http://people.redhat.com/%7Erjones> Read my programming blog: http://rwmj.wordpress.com Fedora now supports 80 OCaml packages (the OPEN alternative to F#) http://cocan.org/getting_started_with_ocaml_on_red_hat_and_fedora
_______________________________________________ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs
On Sun, Mar 04, 2012 at 06:16:22AM -0800, THO HUYNH wrote:
Although I still failed to run the guestfsd daemon inside the guest machine but everything worked properly. I don`t understand why. Can you explain?
The systemd rules start up guestfsd on-demand, ie. only when you connect using '<command> --live' from the host. See if guestfsd is running when you're connected.
By the way, I used guestmount to mount the running guest.
guestmount --live, I hope. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://libguestfs.org
participants (3)
-
Richard W.M. Jones -
THO HUYNH -
Wanlong Gao