Re: How to configure a libvirt network in %post (virsh fails due to libvirtd unable to run)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/28/2012 05:38 PM, Patrick Lists wrote:
Hi,

I am trying to do something like this in the %post section of the
kickstart file for my F16 workstation:

# setup libvirt network
cat > /home/patrick/Downloads/vmr.xml <<EOF
<network>
<name>vmr</name>
<forward mode='route'/>
<bridge name='virbr1' />
<ip address='192.168.198.1' netmask='255.255.255.0'>
</ip>
</network>
EOF

# make sure libvirtd is started
service libvirtd restart

# add the network
virsh net-define vmr.xml
virsh net-start vmr
virsh net-autostart vmr

Unfortunately the virsh commands fail because it seems it is not
possible to start libvirtd and afaict virsh requires libvirtd.

Anyone have any suggestions how to make this work?

Thanks!

Regards,
Patrick



On my F16, I wasn't able to start cups via systemctl or via the service command. I had to start it via /usr/sbin/cupsd.

I expect that you'll need to start libvirtd by hand rather than by using /sbin/service.

You'll also likely need to stop it once you are done calling virsh.

Hugh

_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list


[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux