3393 |
"-snapshot write to temporary files instead of disk image files\n" |
"-snapshot write to temporary files instead of disk image files\n" |
3394 |
"-m megs set virtual RAM size to megs MB\n" |
"-m megs set virtual RAM size to megs MB\n" |
3395 |
"-n script set network init script [default=%s]\n" |
"-n script set network init script [default=%s]\n" |
3396 |
|
"-tun-fd fd this fd talks to tap/tun, use it.\n" |
3397 |
"-nographic disable graphical output\n" |
"-nographic disable graphical output\n" |
3398 |
"\n" |
"\n" |
3399 |
"Linux boot specific (does not require PC BIOS):\n" |
"Linux boot specific (does not require PC BIOS):\n" |
3423 |
{ "nographic", 0, NULL, 0, }, |
{ "nographic", 0, NULL, 0, }, |
3424 |
{ "kernel", 1, NULL, 0, }, |
{ "kernel", 1, NULL, 0, }, |
3425 |
{ "append", 1, NULL, 0, }, |
{ "append", 1, NULL, 0, }, |
3426 |
|
{ "tun-fd", 1, NULL, 0, }, |
3427 |
{ NULL, 0, NULL, 0 }, |
{ NULL, 0, NULL, 0 }, |
3428 |
}; |
}; |
3429 |
|
|
3516 |
case 7: |
case 7: |
3517 |
kernel_cmdline = optarg; |
kernel_cmdline = optarg; |
3518 |
break; |
break; |
3519 |
|
case 8: |
3520 |
|
net_fd = atoi(optarg); |
3521 |
|
break; |
3522 |
} |
} |
3523 |
break; |
break; |
3524 |
case 'h': |
case 'h': |
3573 |
} |
} |
3574 |
|
|
3575 |
/* init network tun interface */ |
/* init network tun interface */ |
3576 |
net_init(); |
if (net_fd < 0) |
3577 |
|
net_init(); |
3578 |
|
|
3579 |
/* init the memory */ |
/* init the memory */ |
3580 |
tmpdir = getenv("QEMU_TMPDIR"); |
tmpdir = getenv("QEMU_TMPDIR"); |