dom0: Use xl tool in qvm-dom0-network-via-netvm

This commit is contained in:
Marek Marczykowski 2011-06-26 00:21:20 +02:00
parent d3145e4431
commit 6bc8595560

View File

@ -59,9 +59,9 @@ def netup():
if os.path.isfile('/var/lock/subsys/NetworkManager'):
os.system('/etc/init.d/NetworkManager stop')
if not vif_eth0_exists():
cmd = 'modprobe xennet && xm network-attach 0 ip=10.137.0.1 backend='
cmd = 'modprobe xennet && xl network-attach 0 ip=10.137.0.1 backend='
cmd += netvm.name
cmd += ' script=vif-route-qubes'
cmd += ' script=/etc/xen/scripts/vif-route-qubes'
if os.system(cmd) != 0:
print 'Error creating network device'
sys.exit(1)