Displaying 3 results from an estimated 3 matches for "vmid_check".
Did you mean:
cmd_check
2005 Sep 08
4
Booting FreeBSD diskless in DomU
...ain''s IP + vmid]
nfsserv -- NFS server IP address. [169.254.1.0]
nfsroot -- Path to nfs root filesystem. [/netboot/freebsd]
""" % config_file
# Define script variables here.
# xm_vars is defined automatically, use xm_vars.var() to define a variable.
def vmid_check(var, val):
val = int(val)
if val <= 0:
raise ValueError
return val
xm_vars.var(''vmid'',
use="Virtual machine id. Integer greater than 0.",
check=vmid_check)
# This checks the script variables.
xm_vars.check()
try:...
2008 Nov 13
1
Error while creating Guest Domain - Please help
...=========================================
# Define script variables here.
# xm_vars is defined automatically, use xm_vars.var() to define a variable.
# This function checks that ''vmid'' has been given a valid value.
# It is called automatically by ''xm create''.
def vmid_check(var, val):
val = int(val)
if val <= 0:
raise ValueError
return val
# Define the ''vmid'' variable so that ''xm create'' knows about it.
xm_vars.var(''vmid'',
use="Virtual machine id. Integer greater than 0."...
2008 Nov 07
1
Unable to get Networking on HVM Domain
...unable to go over the network
(and I cannot reach it over the network either). My configuration file is as
follows:
import os, re
arch = os.uname()[4]
if re.search(''64'', arch):
arch_libdir = ''lib64''
else:
arch_libdir = ''lib''
def vmid_check(var, val):
val = int(val)
if val <= 0:
raise ValueError
return val
# Define the ''vmid'' variable so that ''xm create'' knows about it.
xm_vars.var(''vmid'', use="Virtual machine id. Integer greater than 0.",
check=vmid_c...