from invirt.database import models, connect
from invirt.config import structs as config
import re
-import tempfile
-from subprocess import call
connect()
prefix = "d_"
extra += ' %s' % installer_options
root = '/dev/hdb1'
codepath = None
+
+ memory = max(memory, 512)
elif cdrom is not None:
disk.append('phy:/dev/xenvg/image_' + cdrom.cdrom_id + ',hdc:cdrom,r')
boot = 'd'
for n in machine.nics:
check(re.match('^[0-9a-fA-F:]+$', n.mac_addr) and re.match('^[0-9.]*$', n.ip))
- d = '%smac=%s, ip=%s, script=vif-invirtroute netdev=eth2' % (viftype, n.mac_addr, n.ip)
+ d = ('%smac=%s, ip=%s, script=vif-invirtroute netdev=%s'
+ % (viftype, n.mac_addr, n.ip, config.xen.network.iface))
vif.append(d)
for d in machine.disks: