• 1
In "how to use", the package should be "libvirt-sandbox" on F18, not virt-sandbox :)

Otherwise, it would be good to have a test days, or something like that, where people take 1 software, test it in the sandbox and report their finding.

Re: fix for the doc

Fixed the libvirt-sandbox stuff.

I guess I would welcome a test day, although there are lots of bugs that we already know about.
How do I go about setting up a test day?

Configuring service network address

I have a hard time figuring out how to change the sandboxed service network address.

I defined a new network using virsh net-define:

[network>
[name>bridge[/name>
[forward mode='bridge'/>
[bridge name='br0' />
[/network>

and edited /etc/libvirt-sandbox/services/guest.sandbox file entering:

[network.0]
dhcp=false
source=bridge
addresses=1
routes=0

[network.0.address.0]
primary=85.11.12.123
prefix=26


dhcp=false worked fine as the guest stopped getting ip address.

But [network.0.address.0] definition borks on starting:

[root@host ~]# virt-sandbox-service start guest

(virt-sandbox-service-util:18382): GLib-GObject-CRITICAL **: g_object_unref: assertion `G_IS_OBJECT (object)' failed
(virt-sandbox-service-util:18382): GLib-GIO-CRITICAL **: g_inet_address_to_string: assertion `G_IS_INET_ADDRESS (address)' failed
(virt-sandbox-service-util:18382): GLib-CRITICAL **: g_key_file_set_string: assertion `string != NULL' failed

also source=bridge doesn't seem to work either, as if I destroy 'default' network I get during start:

Unable to start container: Failed to create domain: internal error Network 'default' is not active.

Re: Configuring service network address

> [network.0.address.0]
> primary=85.11.12.123
> prefix=26

The current release requires that you set the broadcast address parameter too. eg broadcast=85.11.12.255

The next release will correctly deal with this being optional.

commit 9cc193eb309f976b67a200c4cabdb9666ae353af
Author: Daniel P. Berrange <berrange@redhat.com>
Date: Wed Mar 20 15:40:30 2013 +0000

Properly handle a NULL broadcast address

The broadcast address parameter for a network was allowed to
be NULL, but this was not handled correctly in all codepaths.


Re: Configuring service network address

Thanks. That helped me setting the IP address and route in my container.

But it still wants to connect to 'default' NAT network instead of 'bridge' bridged one I created.

[network.0]
dhcp=false
source=bridge
addresses=1
routes=1


# virt-sandbox-service start guest
Unable to start container: Failed to create domain: internal error Network 'default' is not active.

  • 1
?

Log in