Hey OSv Developers,
I have an Xen Instance running were IP addresses have to be static assigned.
it seems that I have to pass them using the run.py script.
My current run.py call is the following:
sudo scripts/run.py -nVv -b xenbr0 -p xen -c 1 -m 3G -i build/release.x64/osv.raw --script vif-bridge -e "--ip=eth0,xxx.xx.xx.xxx,xxx.xxx.xxx.xxx --defaultgw=xxx.xx.xx.x --nameserver=xxx.xx.xxx.xx `cat build/release/cmdline`"
I have following questions:
- Does anybody have an idea why OSv gets stuck at "10240MB <Virtual Block Device> at device/vbd/768attaching as vblk0" ?
I have fully functional conf script which boots OSv but without the static IP assignment.
For details see the description further down in the email.
- When I reference an raw image in the run.py script with the -i flag I get following warning:
WARNING: Image format was not specified for '/tmp/osv.raw' and probing guessed raw. Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
I didn't found any argument in the run.py script to specify the image format explicitly.
Did I miss / overlooked something?
- Is there another way to pass arguments to OSv for static IP configuration beside using run.py (like using the extra / bootargs parameter in Xen Configs)? I tried passing arguments with both XEN parameter without any success so far.
See for reference: http://wiki.xenproject.org/wiki/Xen_3.x_Configuration_File_Options
- Is it possible to tweak other system properties like # of file descriptors, # of Available ports (e.g. net.ipv4.ip_local_port_range), TCP Timeout (tcp_fin_timeout) and reuse of TIME_WAIT sockets (tcp_tw_reuse),... ?
Currently the OSv system get stuck at the highlighted line
Parsing config from /tmp/tmpNe9psQ
OSv v0.24-46-g464f4e0
1 CPUs detected
Firmware vendor: Xen
bsd: initializing - done
VFS: mounting ramfs at /
VFS: mounting devfs at /dev
RAM disk at 0x0xffff800002e97040 (4096K bytes)
net: initializing - done
vga: Add VGA device instance
eth0: ethernet address: xx:xx:xx:xx:xx:xx
Back-end specified ring-pages of 16 limited to front-end limit of 15.
Back-end specified ring-pages of 15 is not a power of 2. Limited to 8.
Back-end specified max_requests of 512 limited to front-end limit of 256.
backend features: feature-sg feature-gso-tcp4
10240MB <Virtual Block Device> at device/vbd/768attaching as vblk0
The configuration it creates/parses looks like this:
builder='hvm'
xen_platform_pci=1
acpi=1
apic=1
boot='c'
vncdisplay=1
memory=3072
vcpus=1
maxcpus=1
name='osv-2647'
disk=['/dev/loop2647,raw,hda,rw']
serial='pty'
paused=0
on_crash='preserve'
vif=['bridge=xenbr0,script=vif-bridge']
I have also another written XEN Config which works (without the static IP part).
Following the config file written by hand as reference, which boots an instance successfully (without static IP assignment though):
builder='hvm'
xen_platform_pci=1
acpi=1
apic=1
boot='c'
vncdisplay=1
memory=3072
vcpus=1
maxcpus=1
name='osv-redis'
disk=['/tmp/osv_redis_3.0.5.raw,raw,hda,rw']
serial='pty'
paused=0
console_autoconnect=1
on_crash='preserve'
vif=['script=vif-bridge,bridge=xenbr0']
Thanks for any hints / help!
Best,
Vincent
P.S.: I added the --script argument for Xen to the run.py script and will create an pull request to the upstream.