virtualbox: а че нельзя как в qemu...?
Правила форума
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
Убедительная просьба юзать теги [code] при оформлении листингов.
Сообщения не оформленные должным образом имеют все шансы быть незамеченными.
- dekloper
- ст. лейтенант
- Сообщения: 1331
- Зарегистрирован: 2008-02-24 15:43:19
- Откуда: давно здесь сидим..
- Контактная информация:
virtualbox: а че нельзя как в qemu...?
хочу приделать вирт.диск из реальных девайсов в /dev/adadadadad.....
удивлен, что не могу
удивлен, что не могу
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!
Услуги хостинговой компании Host-Food.ru
Тарифы на хостинг в России, от 12 рублей: https://www.host-food.ru/tariffs/hosting/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
Тарифы на виртуальные сервера (VPS/VDS/KVM) в РФ, от 189 руб.: https://www.host-food.ru/tariffs/virtualny-server-vps/
Выделенные сервера, Россия, Москва, от 2000 рублей (HP Proliant G5, Intel Xeon E5430 (2.66GHz, Quad-Core, 12Mb), 8Gb RAM, 2x300Gb SAS HDD, P400i, 512Mb, BBU):
https://www.host-food.ru/tariffs/vydelennyi-server-ds/
Недорогие домены в популярных зонах: https://www.host-food.ru/domains/
-
- сержант
- Сообщения: 258
- Зарегистрирован: 2009-10-31 22:13:04
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
Можно завтра смогу посмотреть как у меня реализовано.
- Alex Keda
- стреляли...
- Сообщения: 35456
- Зарегистрирован: 2004-10-18 14:25:19
- Откуда: Made in USSR
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
наступило послезавтра, а как оно там реализовано - никто так и не знает )
Убей их всех! Бог потом рассортирует...
-
- проходил мимо
Re: virtualbox: а че нельзя как в qemu...?
обещаного "завтра" - 3 года ждут.
"послезавтра" - ещё дольше
"послезавтра" - ещё дольше
-
- сержант
- Сообщения: 258
- Зарегистрирован: 2009-10-31 22:13:04
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
Сорь замотался есть такая вещь как VBoxManage storageattach.
Сначала через storagectl добавляем контролер. VBoxManage storagectl add --name "SATA Controller" --add sata --controller ICH6 --sataportcount 2
Потом VBoxManage storageattach "<VM Name>" --storagectl "SATA Controller" --port 2 --device 1 --type hdd --medium Host:/dev/ad2
Вот так вот у нас появляется новый HDD в системе. Еще можно .vdi диски цеплять.
Сначала через storagectl добавляем контролер. VBoxManage storagectl add --name "SATA Controller" --add sata --controller ICH6 --sataportcount 2
Потом VBoxManage storageattach "<VM Name>" --storagectl "SATA Controller" --port 2 --device 1 --type hdd --medium Host:/dev/ad2
Вот так вот у нас появляется новый HDD в системе. Еще можно .vdi диски цеплять.
-
- подполковник
- Сообщения: 3927
- Зарегистрирован: 2008-09-04 11:51:25
- Откуда: Санкт-Петербург
Re: virtualbox: а че нельзя как в qemu...?
А можно его цеплять как первый в SATA и ставить на него систему? Пробовал?Dark_ASU писал(а):Сорь замотался есть такая вещь как VBoxManage storageattach.
Сначала через storagectl добавляем контролер. VBoxManage storagectl add --name "SATA Controller" --add sata --controller ICH6 --sataportcount 2
Потом VBoxManage storageattach "<VM Name>" --storagectl "SATA Controller" --port 2 --device 1 --type hdd --medium Host:/dev/ad2
Вот так вот у нас появляется новый HDD в системе. Еще можно .vdi диски цеплять.
-
- сержант
- Сообщения: 258
- Зарегистрирован: 2009-10-31 22:13:04
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
Всмысле ставить на его систему, немного не понял вопроса.
-
- подполковник
- Сообщения: 3927
- Зарегистрирован: 2008-09-04 11:51:25
- Откуда: Санкт-Петербург
Re: virtualbox: а че нельзя как в qemu...?
Именно, ставить на него виртуальную машину...Завтра попробую...Dark_ASU писал(а):Всмысле ставить на его систему, немного не понял вопроса.
-
- сержант
- Сообщения: 258
- Зарегистрирован: 2009-10-31 22:13:04
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
Тогда нужно на весь диск сделать VBoxManage internalcommands createrawvmdk -filename /home/vboxuser/Virtualbox/VDI /mydrive.vmdk -rawdisk /dev/sda0 и далее приатачить его к уже сконфигурированной или новой VM.
-
- подполковник
- Сообщения: 3927
- Зарегистрирован: 2008-09-04 11:51:25
- Откуда: Санкт-Петербург
Re: virtualbox: а че нельзя как в qemu...?
Да именно это я и имел ввиду...
- dekloper
- ст. лейтенант
- Сообщения: 1331
- Зарегистрирован: 2008-02-24 15:43:19
- Откуда: давно здесь сидим..
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
матюкаецца чотаDark_ASU писал(а):Сорь замотался есть такая вещь как VBoxManage storageattach.
Код: Выделить всё
VBoxManage: error: Invalid controller type 6
VBoxManage: error: Details: code NS_ERROR_INVALID_ARG (0x80070057), component StorageController, interface IStorageController, callee nsISupports
Context: "COMSETTER(ControllerType)(StorageControllerType_ICH6)" at line 1073 of file VBoxManageStorageController.cpp
чойта нет такой коммандыDark_ASU писал(а):Тогда нужно на весь диск сделать VBoxManage internalcommands createrawvmdk -filename /home/vboxuser/Virtualbox/VDI /mydrive.vmdk -rawdisk /dev/sda0 и далее приатачить его к уже сконфигурированной или новой VM.
Код: Выделить всё
VBoxManage | grep inter
[--gueststatisticsinterval <seconds>]
gueststatisticsinterval <seconds>]
[--maskedinterfaces <XXXXXXXX>]
[--maskedinterfaces <XXXXXXXX>]
ps
Код: Выделить всё
VBoxManage -v
4.1.18_OSEr78361
ТОВАгИЩИ! БгАТЬЯ И СЕСТгЫ! ДОЛОЙ гАВНОДУШИЕ!
-
- сержант
- Сообщения: 258
- Зарегистрирован: 2009-10-31 22:13:04
- Контактная информация:
Re: virtualbox: а че нельзя как в qemu...?
VBoxManage internalcommands
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.
Usage: VBoxManage internalcommands <command> [command arguments]
Commands:
loadsyms <vmname>|<uuid> <symfile> [delta] [module] [module address]
This will instruct DBGF to load the given symbolfile
during initialization.
unloadsyms <vmname>|<uuid> <symfile>
Removes <symfile> from the list of symbol files that
should be loaded during DBF initialization.
sethduuid <filepath>
Assigns a new UUID to the given image file. This way, multiple copies
of a container can be registered.
dumphdinfo <filepath>
Prints information about the image at the given location.
listpartitions -rawdisk <diskname>
Lists all partitions on <diskname>.
createrawvmdk -filename <filename> -rawdisk <diskname>
[-partitions <list of partition numbers> [-mbr <filename>] ]
[-register] [-relative]
Creates a new VMDK image which gives access to an entite host disk (if
the parameter -partitions is not specified) or some partitions of a
host disk. If access to individual partitions is granted, then the
parameter -mbr can be used to specify an alternative MBR to be used
(the partitioning information in the MBR file is ignored).
The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
\\.\PhysicalDrive0).
On Linux host the parameter -relative causes a VMDK file to be created
which refers to individual partitions instead to the entire disk.
Optionally the created image can be immediately registered.
The necessary partition numbers can be queried with
VBoxManage internalcommands listpartitions
renamevmdk -from <filename> -to <filename>
Renames an existing VMDK image, including the base file and all its extents.
converttoraw [-format <fileformat>] <filename> <outputfile>
Convert image to raw, writing to file.
converthd [-srcformat VDI|VMDK|VHD|RAW]
[-dstformat VDI|VMDK|VHD|RAW]
<inputfile> <outputfile>
converts hard disk images between formats
WARNING: This is a development tool and shall only be used to analyse
problems. It is completely unsupported and will change in
incompatible ways without warning.
По grep не показывает ее.
--name "SATA Controller" здесь поиграйся с названиями.
Oracle VM VirtualBox Command Line Management Interface Version 3.2.10_OSE
(C) 2005-2010 Oracle Corporation
All rights reserved.
Usage: VBoxManage internalcommands <command> [command arguments]
Commands:
loadsyms <vmname>|<uuid> <symfile> [delta] [module] [module address]
This will instruct DBGF to load the given symbolfile
during initialization.
unloadsyms <vmname>|<uuid> <symfile>
Removes <symfile> from the list of symbol files that
should be loaded during DBF initialization.
sethduuid <filepath>
Assigns a new UUID to the given image file. This way, multiple copies
of a container can be registered.
dumphdinfo <filepath>
Prints information about the image at the given location.
listpartitions -rawdisk <diskname>
Lists all partitions on <diskname>.
createrawvmdk -filename <filename> -rawdisk <diskname>
[-partitions <list of partition numbers> [-mbr <filename>] ]
[-register] [-relative]
Creates a new VMDK image which gives access to an entite host disk (if
the parameter -partitions is not specified) or some partitions of a
host disk. If access to individual partitions is granted, then the
parameter -mbr can be used to specify an alternative MBR to be used
(the partitioning information in the MBR file is ignored).
The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
\\.\PhysicalDrive0).
On Linux host the parameter -relative causes a VMDK file to be created
which refers to individual partitions instead to the entire disk.
Optionally the created image can be immediately registered.
The necessary partition numbers can be queried with
VBoxManage internalcommands listpartitions
renamevmdk -from <filename> -to <filename>
Renames an existing VMDK image, including the base file and all its extents.
converttoraw [-format <fileformat>] <filename> <outputfile>
Convert image to raw, writing to file.
converthd [-srcformat VDI|VMDK|VHD|RAW]
[-dstformat VDI|VMDK|VHD|RAW]
<inputfile> <outputfile>
converts hard disk images between formats
WARNING: This is a development tool and shall only be used to analyse
problems. It is completely unsupported and will change in
incompatible ways without warning.
По grep не показывает ее.
--name "SATA Controller" здесь поиграйся с названиями.