Как удалить виртуальную машину в virtualbox
Перейти к содержимому

Как удалить виртуальную машину в virtualbox

  • автор:

VBoxManage

VBoxManage — это интерфейс командной строки для виртуальной машины Oracle VirtualBox.

С его помощью вы можете полностью управлять Oracle VM VirtualBox из командной строки операционной системы вашего хоста.

VBoxManage поддерживает все функции, к которым предоставляет вам доступ графический пользовательский интерфейс, но он поддерживает гораздо больше.

Он предоставляет все функции механизма виртуализации, даже те, к которым невозможно получить доступ из графического интерфейса.

Применение

VBoxManage [<general option>] <command>

alias

VBoxManage это очень длинная команда, я создаю alias

sed -i -e ' $ aalias vbman=»VBoxManage»'

Основные опции

[-v|—version] print version number and exit [-q|—nologo] suppress the logo [—settingspw <pw>] provide the settings password [—settingspwfile <file>] provide a file containing the settings password [@<response-file>] load arguments from the given response file (bourne style)

Команды

Полный список доступных команд вы можете изучить в статье VBoxManage man

Список существующих ВМ

Список виртуальных машин можно получить, с помощью команды list с опцией vms

list [—long|-l] [—sorted|-s] vms|runningvms|ostypes|hostdvds|hostfloppies| intnets|bridgedifs|hostonlyifs|natnets|dhcpservers| hostinfo|hostcpuids|hddbackends|hdds|dvds|floppies| usbhost|usbfilters|systemproperties|extpacks| groups|webcams|screenshotformats|cloudproviders| cloudprofiles|cloudnets

VBoxManage list vms

Если вы только начали работу с VirtualBox этот список пуст

Если какие-то виртуальные машины установлены, он будет выглядеть примерно так

Запущенные машины

vboxmanage list runningvms

Список доступных ОС

Можно получить полный список выполнив

VBoxManage list ostypes

… ID: Debian_64 Description: Debian (64-bit) Family ID: Linux Family Desc: Linux 64 bit: true … ID: RedHat_64 Description: Red Hat (64-bit) Family ID: Linux Family Desc: Linux 64 bit: true … ID: Ubuntu_64 Description: Ubuntu (64-bit) Family ID: Linux Family Desc: Linux 64 bit: true …

Полный список поддерживаемых операционных систем вы можете изучить в статье ostypes

Создать виртуальную машину

Чтобы создать машину под ОС Ubuntu нужно выполнить команду createvm с —ostype Ubuntu_64 и другими аргументами

VBoxManage createvm —name «ubuntu20» —ostype Ubuntu_64 —basefolder /home/andrei/VirtualBox\ VMs/mng —register

Информация о машине

Изучить определённую виртуальную машину можно выполнив команду showvminfo

В качестве аргумента нужно передать имя машины либо её UID. Изучим машину ubuntu из этого списка

Следующие две команды дадут одинаковый результат

VBoxManage showvminfo ubuntu
VBoxManage showvminfo 9ec5b764-4dce-488b-813a-ede712e2eb38

Name: ubuntu Groups: /Other OS Guest OS: Ubuntu (64-bit) UUID: 9ec5b764-4dce-488b-813a-ede712e2eb38 Config file: /home/andrei/VirtualBox VMs/Other OS/ubuntu/ubuntu.vbox Snapshot folder: /home/andrei/VirtualBox VMs/Other OS/ubuntu/Snapshots Log folder: /home/andrei/VirtualBox VMs/Other OS/ubuntu/Logs Hardware UUID: 9ec5b764-4dce-488b-813a-ede712e2eb38 Memory size: 6144MB Page Fusion: disabled VRAM size: 16MB CPU exec cap: 100% HPET: disabled CPUProfile: host Chipset: piix3 Firmware: BIOS Number of CPUs: 1 PAE: disabled Long Mode: enabled Triple Fault Reset: disabled APIC: enabled X2APIC: enabled Nested VT-x/AMD-V: disabled CPUID Portability Level: 0 CPUID overrides: None Boot menu mode: message and menu Boot Device 1: Floppy Boot Device 2: DVD Boot Device 3: HardDisk Boot Device 4: Not Assigned ACPI: enabled IOAPIC: enabled BIOS APIC mode: APIC Time offset: 0ms RTC: UTC Hardware Virtualization: enabled Nested Paging: enabled Large Pages: disabled VT-x VPID: enabled VT-x Unrestricted Exec.: enabled Paravirt. Provider: Default Effective Paravirt. Prov.: KVM State: powered off (since 2022-01-28T13:44:36.817000000) Graphics Controller: VMSVGA Monitor count: 1 3D Acceleration: disabled 2D Video Acceleration: disabled Teleporter Enabled: disabled Teleporter Port: 0 Teleporter Address: Teleporter Password: Tracing Enabled: disabled Allow Tracing to Access VM: disabled Tracing Configuration: Autostart Enabled: disabled Autostart Delay: 0 Default Frontend: VM process priority: default Storage Controller Name (0): IDE Storage Controller Type (0): PIIX4 Storage Controller Instance Number (0): 0 Storage Controller Max Port Count (0): 2 Storage Controller Port Count (0): 2 Storage Controller Bootable (0): on Storage Controller Name (1): SATA Storage Controller Type (1): IntelAhci Storage Controller Instance Number (1): 0 Storage Controller Max Port Count (1): 30 Storage Controller Port Count (1): 1 Storage Controller Bootable (1): on IDE (1, 0): /home/andrei/.config/VirtualBox/VBoxGuestAdditions_6.1.26.iso (UUID: 037c30e4-c49f-490d-a244-51d54c51ad61) SATA (0, 0): /home/andrei/VirtualBox VMs/Other OS/ubuntu/ubuntu.vdi (UUID: 5ce895f5-9bd5-40ac-9214-9950bf50b254) NIC 1: MAC: 0800271F61A9, Attachment: NAT Network 'NatNetwork', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none NIC 2: MAC: 0800271D428E, Attachment: Host-only Interface 'vboxnet0', Cable connected: on, Trace: off (file: none), Type: 82540EM, Reported speed: 0 Mbps, Boot priority: 0, Promisc Policy: deny, Bandwidth group: none NIC 3: disabled NIC 4: disabled NIC 5: disabled NIC 6: disabled NIC 7: disabled NIC 8: disabled Pointing Device: USB Tablet Keyboard Device: PS/2 Keyboard UART 1: disabled UART 2: disabled UART 3: disabled UART 4: disabled LPT 1: disabled LPT 2: disabled Audio: enabled (Driver: PulseAudio, Controller: AC97, Codec: AD1980) Audio playback: enabled Audio capture: disabled Clipboard Mode: disabled Drag and drop Mode: disabled VRDE: disabled OHCI USB: enabled EHCI USB: disabled xHCI USB: disabled USB Device Filters: <none> Bandwidth groups: <none> Shared folders:<none> Capturing: not active Capture audio: not active Capture screens: 0 Capture file: /home/andrei/VirtualBox VMs/Other OS/ubuntu/ubuntu.webm Capture dimensions: 1024×768 Capture rate: 512kbps Capture FPS: 25kbps Capture options: Guest: Configured memory balloon size: 0MB

Изучить только размер оперативной памяти

VBoxManage showvminfo ubuntu20 | grep Memory

Memory size: 128MB

Изображение баннера

Изменить основные параметры

VBoxManage modifyvm ubuntu20 —memory 8192 —cpus 2 —vram 16 —graphicscontroller vmsvga

Изменить размер оперативной памяти

Чтобы изменить RAM на машине ubuntu20

VBoxManage modifyvm ubuntu20 —memory 8192

VBoxManage showvminfo ubuntu20 | grep Memory

Memory size: 8192MB

System Motherboard VirtualBox изображение с сайта www.andreyolegovich.ru

По пока-что неясным причинам VirtualBox несколько раз принимал значение —memory не в Mb как заявлено в спецификации а в байтах, то есть приходилось задавать —memory 8589934592

Изменить CPU

Чтобы изменить количество CPU на машине ubuntu20

VBoxManage modifyvm ubuntu20 —cpus 2

VBoxManage showvminfo ubuntu20 | grep CPUs

Number of CPUs: 2

System Processor VirtualBox изображение с сайта www.andreyolegovich.ru

Изменить VRAM

Чтобы изменить vram на машине ubuntu20

VBoxManage modifyvm ubuntu20 —vram 16

VBoxManage showvminfo ubuntu20 | grep RAM

Display Screen размер vram VirtualBox изображение с сайта www.andreyolegovich.ru

Изменить графический контроллер

Чтобы изменить графический контроллер машины ubuntu20 на vmsvga (возможные варианты none|vboxvga|vmsvga|vboxsvga)

VBoxManage modifyvm ubuntu20 —graphicscontroller vmsvga

графический контроллер vmsvga graphicscontroller VirtualBox изображение с сайта www.andreyolegovich.ru

dhcpserver

Список существующих DHCP серверов

VBoxManage list dhcpservers

Создать новый DHCP сервер для сети NatNetwork1

VBoxManage dhcpserver add —network=NatNetwork1 —server-ip=10.0.2.3 —netmask=255.255.255.0 —lower-ip=10.0.2.4 —upper-ip=10.0.2.254 —enable

Пример вывода ip a для интерфейса nic2 подлкюченного к такому DHCP серверу

… 3: enp0s8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 08:00:27:4c:9e:d7 brd ff:ff:ff:ff:ff:ff inet 10.0.2.4/24 brd 10.0.2.255 scope global noprefixroute dynamic enp0s8 valid_lft 404sec preferred_lft 404sec inet6 fe80::2650:3e88:7062:aec6/64 scope link noprefixroute valid_lft forever preferred_lft forever

Подключить сетевой адаптер

Возможные варианты подключения (подробнее о каждом здесь)

hostonly

Прежде чем подключать hostonly адаптер нужно проверить включен ли DHCP сервер для HostInterfaceNetworking

VBoxManage list dhcpservers

У меня они обычно в самом верху — над natnetwork и другими

NetworkName: HostInterfaceNetworking-vboxnet0 Dhcpd IP: 192.168.56.100 LowerIPAddress: 192.168.56.101 UpperIPAddress: 192.168.56.254 NetworkMask: 255.255.255.0 Enabled: Yes Global Configuration: minLeaseTime: default defaultLeaseTime: default maxLeaseTime: default Forced options: None Suppressed opts.: None 1/legacy: 255.255.255.0 Groups: None Individual Configs: None …

Создать новый hostonly интерфейс можно командой

VBoxManage hostonlyif create

0%. 10%. 20%. 30%. 40%. 50%. 60%. 70%. 80%. 90%. 100%
Interface 'vboxnet0' was successfully created

Изучить список существующих

VBoxManage list hostonlyifs

VBoxManage list hostonlyifs Name: vboxnet0 GUID: 786f6276-656e-4074-8000-0a0027000000 DHCP: Disabled IPAddress: 192.168.56.1 NetworkMask: 255.255.255.0 IPV6Address: IPV6NetworkMaskPrefixLength: 0 HardwareAddress: 0a:00:27:00:00:00 MediumType: Ethernet Wireless: No Status: Down VBoxNetworkName: HostInterfaceNetworking-vboxnet0

Чтобы подключить первый сетевой адаптер на машине ubuntu20 в режиме hostonly

VBoxManage modifyvm ubuntu20 —nic1 hostonly

или в случае, когда нужно явно указать hostonly сеть

VBoxManage modifyvm ubuntu20 —nic1 hostonly —hostonlyadapter1 vboxnet0

natnetwork

Список существующих natnetwork можно получить командой

VBoxManage natnetwork list

NAT Networks: 0 networks found

Создать новую natnetwork и включить dhcp

VBoxManage natnetwork add —netname NatNetwork1 —network «192.168.56.0/24» —enable —dhcp on

Сменить сеть

Чтобы переключить natnetwork c NatNetwork на NatNetwork1 на втором сетевом адапетере (nic 2 ) машины ubuntu20

VBoxManage modifyvm ubuntu20 —natnetwork 2 NatNetwork1

Можно явно указать адаптер

VBoxManage modifyvm ubuntu20 —nic2 natnetwork —natnetwork 2 NatNetwork1

Изменить natnetwork

VBoxManage natnetwork modify —netname NatNetwork1 —network 10.0.2.0/24

Удалить natnetwork

VBoxManage natnetwork remove —netname NatNetwork1

Отключить сетевой адаптер

Чтобы отключить первый сетевой адаптер на машине ubuntu20

VBoxManage modifyvm ubuntu20 —nic1 none

Для наглядности демонстрирую как статус none выглядит в UI

Сетевой адаптер nic1 в статусе none VirtualBox изображение с сайта www.andreyolegovich.ru

Сетевой адаптер none

Создать диск

Чтобы создать диск для машины ubuntu20 и разместить его в той же директории где находятся другие файлы, связанные с ubuntu20 выполните

VBoxManage createhd —filename /home/andrei/VirtualBox\ VMs/mng/ubuntu20/ubuntu20.vdi \
—size 25600 —variant Standard

0%. 10%. 20%. 30%. 40%. 50%. 60%. 70%. 80%. 90%. 100% Medium created. UUID: cf68bdfc-f0e9-48c3-8bfc-5973ad0f1917

VBoxManage storagectl ubuntu20 —name «SATA Controller» —add sata —bootable on
VBoxManage storageattach ubuntu20 —storagectl «SATA Controller» —port 0 —device 0 —type hdd —medium /home/andrei/VirtualBox\ VMs/mng/ubuntu20/ubuntu20.vdi
VBoxManage storagectl ubuntu20 —name «IDE Controller» —add ide
VBoxManage storageattach ubuntu20 —storagectl «IDE Controller» —port 0 —device 0 —type dvddrive —medium /home/andrei/Downloads/linux_isos/ubuntu-20.04.3-desktop-amd64.iso

Список дисков

Чтобы изучить зарегистрированные в VirtualBox диски выполните

VBoxManage list hdds

Среди списка всех дисков можно найти созданный в предыдущем параграфе

… UUID: cf68bdfc-f0e9-48c3-8bfc-5973ad0f1917 Parent UUID: base State: created Type: normal (base) Location: /home/andrei/VirtualBox VMs/mng/ubuntu20/ubuntu20.vdi Storage format: VDI Capacity: 25600 MBytes Encryption: disabled …

Удалить диск

Чтобы удалить диск найдите его UUID и выполните closemedium disk с флагом —delete

VBoxManage closemedium disk cf68bdfc-f0e9-48c3-8bfc-5973ad0f1917 —delete

0%. 10%. 20%. 30%. 40%. 50%. 60%. 70%. 80%. 90%. 100%

Запустить установку

Чтобы теперь запустить установку гостевой ОС достаточно запустить виртуальную машину

VBoxManage startvm ubuntu20

Запустит графический режим установки

startvm: Запуск виртуальной машины

Чтобы запустить виртуальную машину ubuntu20 нужно выполнить

VBoxManage startvm ubuntu20

Остановка виртуальной машины

Чтобы остановить виртуальную машину ubuntu20 нужно выполнить

VBoxManage controlvm ubuntu20 poweroff

0%. 10%. 20%. 30%. 40%. 50%. 60%. 70%. 80%. 90%. 100%

Удалить виртуальную машину

Чтобы удалить виртуальную машину нужно снять её с регистрации с флагом delete

VBoxManage unregistervm ubuntu20 —delete

GNUmakefile для установки Linux

Чтобы создать новую виртуальную машину с Host-Only и NatNetwork адаптерами и установить туда CentOS7 скопируте этот GNUmakefile и выполните

Чтобы установить Ubuntu 20.04.3 раскомментируйте блок с Ubuntu и закоментируйте блок с CentOS7

# Choose available name # Uncomment required OS LINUX_VM_NAME =centos7 # CENTOS 7 LINUX_REPO = "centos.mirror.far.fi" LINUX_VERSION =7.9.2009 LINUX_ISO =CentOS-7-x86_64-DVD-2009.iso LINUX_URL =http:// $(LINUX_REPO) / $(LINUX_VERSION) /isos/x86_64/ $(LINUX_ISO) OS_TYPE =RedHat_64 # UBUNTU # LINUX_REPO="mirror.yandex.ru/ubuntu-releases" # LINUX_VERSION=20.04.3 # LINUX_ISO=ubuntu-$(LINUX_VERSION)-desktop-amd64.iso # LINUX_URL=https://$(LINUX_REPO)/$(LINUX_VERSION)/$(LINUX_ISO) # OS_TYPE=Ubuntu_64 ISO_DIR =/home/ $$ (whoami)/virtualbox/iso/ VM_BASEFOLDER =/home/ $$ (whoami)/virtualbox/vms/ VDI_DIR =/home/ $$ (whoami)/virtualbox/vdi/ .PHONY: download-linux download-linux: $(check_iso_dir) @ if [ ! -f $(ISO_DIR)$(LINUX_ISO) ]; then \ wget -c " $(LINUX_URL) " \ -O $(ISO_DIR)$(LINUX_ISO) ; \ else \ echo "INFO: $(ISO_DIR)$(LINUX_ISO) already exists"; \ fi .PHONY: new-linux-vm new-linux-vm: download-linux create-linux-vm mod-linux-vm create-linux-disk start-linux-vm .PHONY: new-linux-vm-nn new-linux-vm-nn: download-linux create-linux-vm create-natnetwork mod-linux-vm create-linux-disk start-linux-vm .PHONY: create-linux-vm create-linux-vm: $(check_vms_dir) @ VBoxManage createvm —name $(LINUX_VM_NAME) \ —ostype $(OS_TYPE) —basefolder $(VM_BASEFOLDER) \ —register; .PHONY: mod-linux-vm-old mod-linux-vm-old: HOIFS := $(VBoxManage list hostonlyifs) mod-linux-vm-old: @ echo modifying $(LINUX_VM_NAME) @ if [ ! $(HOIFS) ]; then \ VBoxManage hostonlyif create; \ else \ echo "INFO: found Host-Only-Interfaces " $(HOIFS) ; \ fi @ VBoxManage natnetwork add —netname NatNetwork1 \ —network "192.168.56.0/24" —enable \ —dhcp on \ @VBoxManage modifyvm $(LINUX_VM_NAME) \ —memory 8192 \ —cpus 2 —vram 16 —graphicscontroller vmsvga \ —nic1 hostonly —hostonlyadapter1 vboxnet0 \ —nic2 natnetwork —natnetwork2 NatNetwork1; .PHONY: mod-linux-vm mod-linux-vm: HOIFS := $( shell VBoxManage list hostonlyifs | grep vboxnet0) mod-linux-vm: @ echo "existing Host-Only interfaces:"; @ echo $(HOIFS) ; @ echo "——————————"; @ echo modifying $(LINUX_VM_NAME) @ if [ -z $(HOIFS) ]; then \ echo "creating new hostonlyif"; \ VBoxManage hostonlyif create; \ else \ echo "INFO: found Host-Only-Interfaces " $(HOIFS) ; \ fi @ VBoxManage modifyvm $(LINUX_VM_NAME) \ —memory 8192 \ —cpus 2 —vram 16 —graphicscontroller vmsvga \ —nic1 hostonly —hostonlyadapter1 vboxnet0 \ —nic2 natnetwork —natnetwork2 NatNetwork1 \ —nic3 bridged —bridgeadapter3 eno1; .PHONY: create-natnetwork create-natnetwork: NATN1 := $( shell VBoxManage list natnetworks | grep NatNetwork1) create-natnetwork: @ echo $(NATN1) ; @ if [ -z $(NATN1) ]; then \ echo "NatNetwork1 not found. Creating. "; \ VBoxManage natnetwork add \ —netname NatNetwork1 \ —network "10.0.2.0/24" —enable \ —dhcp on; \ else \ echo "INFO: NatNetwork1 already exists"; \ fi .PHONY: create-linux-disk create-linux-disk: $(check_vdi_dir) @ VBoxManage createhd —filename $(VDI_DIR)$(LINUX_VM_NAME) .vdi —size 25600 \ —variant Standard @ VBoxManage storagectl $(LINUX_VM_NAME) —name "SATA Controller" \ —add sata —bootable on @ VBoxManage storageattach $(LINUX_VM_NAME) —storagectl "SATA Controller" \ —port 0 —device 0 —type hdd —medium $(VDI_DIR)$(LINUX_VM_NAME) .vdi @ VBoxManage storagectl $(LINUX_VM_NAME) —name "IDE Controller" —add ide @ VBoxManage storageattach $(LINUX_VM_NAME) —storagectl "IDE Controller" \ —port 0 —device 0 —type dvddrive —medium $(ISO_DIR)$(LINUX_ISO) .PHONY: start-linux-vm start-linux-vm: @ echo "————————————-"; @ echo "Starting VM $(LINUX_VM_NAME) "; @ VBoxManage startvm $(LINUX_VM_NAME) # for headless start use # @VBoxManage startvm $(LINUX_VM_NAME)—type=headless .PHONY: delete-linux-vm delete-linux-vm: @ VBoxManage unregistervm $(LINUX_VM_NAME) —delete .PHONY: delete-linux-disk delete-linux-disk: rm -rf $(VDI_DIR)$(LINUX_VM_NAME) .vdi define check_iso_dir @if [ ! -d $(ISO_DIR) ]; then \ echo "INFO: Creating dir " $(ISO_DIR) ; \ mkdir -p $(ISO_DIR) ; \ else \ echo "INFO: Directory " $(ISO_DIR) " already exists"; \ fi endef define check_vms_dir @if [ ! -d $(VM_BASEFOLDER) ]; then \ echo "INFO: Creating dir " $(VM_BASEFOLDER) ; \ mkdir -p $(VM_BASEFOLDER) ; \ else \ echo "INFO: Directory " $(VM_BASEFOLDER) " already exists"; \ fi endef define check_vdi_dir @if [ ! -d $(VDI_DIR) ]; then \ echo "INFO: Creating dir " $(VDI_DIR) ; \ mkdir -p $(VDI_DIR) ; \ else \ echo "INFO: Directory " $(VDI_DIR) " already exists"; \ fi endef

Подпишитесь на Telegram канал @aofeed чтобы следить за выходом новых статей и обновлением старых

Как полностью удалить ОС из VirtualBox?

Я установил Windows XP в свой VirtualBox несколько дней назад. Теперь я хочу полностью удалить Windows XP из VirtualBox, и я решил установить Ubuntu 13.04 для тестирования.

Как правильно полностью удалить Windows XP из VirtualBox?

2 ответа

Нет смысла хранить конкретную виртуальную машину и менять ОС внутри, поэтому удалите виртуальную машину и создайте новую:

Virtual Box Manager

В графическом интерфейсе для Virtual В поле мы можем легко удалить виртуальную машину, выбрав машину для удаления и перейдя в пункт меню «Машина -> Удалить» или выбрав «Удалить» в контекстном меню, вызываемом правой кнопкой мыши. меню.

enter image description here

Затем нас спросят, хотим ли мы только удалить машину (т.е. отменить ее регистрацию) или мы также хотим «Удалить все файлы» . Последний полностью удалит виртуальную машину со всеми файлами с нашего диска.

Как удалить виртуальную машину в virtualbox

Oracle® VM VirtualBox

User Manual for Release 6.0

  • Preface
  • First Steps
    • Why is Virtualization Useful?
    • Some Terminology
    • Features Overview
    • Supported Host Operating Systems
      • Host CPU Requirements
      • Starting a New VM for the First Time
      • Capturing and Releasing Keyboard and Mouse
      • Typing Special Characters
      • Changing Removable Media
      • Resizing the Machine’s Window
      • Saving the State of the Machine
      • Taking, Restoring, and Deleting Snapshots
      • Snapshot Contents
      • About the OVF Format
      • Importing an Appliance in OVF Format
      • Exporting an Appliance in OVF Format
      • Exporting an Appliance to Oracle Cloud Infrastructure
      • Importing an Instance from Oracle Cloud Infrastructure
      • The Cloud Profile Manager
      • Using the Soft Keyboard
      • Creating a Custom Keyboard Layout
      • Installing on Windows Hosts
        • Prerequisites
        • Performing the Installation
        • Uninstallation
        • Unattended Installation
        • Public Properties
        • Performing the Installation
        • Uninstallation
        • Unattended Installation
        • Prerequisites
        • The Oracle VM VirtualBox Kernel Modules
          • Kernel Modules and UEFI Secure Boot
          • Installing Oracle VM VirtualBox from a Debian or Ubuntu Package
          • Using the Alternative Generic Installer (VirtualBox.run)
          • Performing a Manual Installation
          • Updating and Uninstalling Oracle VM VirtualBox
          • Automatic Installation of Debian Packages
          • Automatic Installation of RPM Packages
          • Automatic Installation Options
          • Performing the Installation
          • The vboxuser Group
          • Starting Oracle VM VirtualBox on Oracle Solaris
          • Uninstallation
          • Unattended Installation
          • Configuring a Zone for Running Oracle VM VirtualBox
          • Supported Guest Operating Systems
            • Mac OS X Guests
            • 64-bit Guests
            • An Example of Unattended Guest Installation
            • Basic Tab
            • Advanced Tab
            • Description Tab
            • Disk Encryption Tab
            • Motherboard Tab
            • Processor Tab
            • Acceleration Tab
            • Screen Tab
            • Remote Display Tab
            • Recording Tab
            • USB Settings
            • Implementation Notes for Windows and Linux Hosts
            • Video Modes in EFI
            • Specifying Boot Arguments
            • Introduction to Guest Additions
            • Installing and Maintaining Guest Additions
              • Guest Additions for Windows
                • Installing the Windows Guest Additions
                • Updating the Windows Guest Additions
                • Unattended Installation
                • Manual File Extraction
                • Installing the Linux Guest Additions
                • Graphics and Mouse Integration
                • Updating the Linux Guest Additions
                • Uninstalling the Linux Guest Additions
                • Installing the Oracle Solaris Guest Additions
                • Uninstalling the Oracle Solaris Guest Additions
                • Updating the Oracle Solaris Guest Additions
                • Manual Mounting
                • Automatic Mounting
                • Supported Formats
                • Known Limitations
                • Hardware 3D Acceleration (OpenGL and Direct3D 8/9)
                • Hardware 2D Video Acceleration for Windows Guests
                • Using Guest Properties to Wait on VM Events
                • Using the Guest Control File Manager
                • Memory Ballooning
                • Page Fusion
                • Hard Disk Controllers
                • Disk Image Files (VDI, VMDK, VHD, HDD)
                • The Virtual Media Manager
                • Special Image Write Modes
                • Differencing Images
                • Cloning Disk Images
                • Host Input/Output Caching
                • Limiting Bandwidth for Disk Images
                • CD/DVD Support
                • iSCSI Servers
                • vboximg-mount: A Utility for FUSE Mounting a Virtual Disk Image
                  • Viewing Detailed Information About a Virtual Disk Image
                  • Mounting a Virtual Disk Image
                  • Virtual Networking Hardware
                  • Introduction to Networking Modes
                  • Network Address Translation (NAT)
                    • Configuring Port Forwarding with NAT
                    • PXE Booting with NAT
                    • NAT Limitations
                    • Introduction
                    • Commands Overview
                    • General Options
                    • VBoxManage list
                    • VBoxManage showvminfo
                    • VBoxManage registervm/unregistervm
                    • VBoxManage createvm
                    • VBoxManage modifyvm
                      • General Settings
                      • Networking Settings
                        • NAT Networking Settings
                        • Import from OVF
                        • Import from Oracle Cloud Infrastructure
                        • Export to OVF
                        • Export to Oracle Cloud Infrastructure
                        • Synopsis
                        • Description
                          • unattended detect
                          • unattended install
                          • Synopsis
                          • Description
                            • General Command Operand
                            • Take a Snapshot of a Virtual Machine
                            • Delete a Snapshot
                            • Restore a Snapshot
                            • Restore the Current Snapshot
                            • Change the Name or Description of an Existing Snapshot
                            • List the Snapshots
                            • Show Information About a Snapshot’s Settings
                            • Synopsis
                            • Description
                            • Command Operand and Options
                            • Examples
                            • See Also
                            • Synopsis
                            • Description
                              • extpack install
                              • extpack uninstall
                              • extpack cleanup
                              • Synopsis
                              • Description
                                • Common options
                                • dhcpserver add
                                • dhcpserver modify
                                • dhcpserver remove
                                • dhcpserver restart
                                • dhcpserver findlease
                                • Common DHCP Options:
                                • Synopsis
                                • Description
                                  • Common options
                                  • debugvm dumpvmcore
                                  • debugvm info
                                  • debugvm injectnmi
                                  • debugvm log
                                  • debugvm logdest
                                  • debugvm logflags
                                  • debugvm osdetect
                                  • debugvm osinfo
                                  • debugvm osdmesg
                                  • debugvm getregisters
                                  • debugvm setregisters
                                  • debugvm show
                                  • debugvm stack
                                  • debugvm statistics
                                  • Synopsis
                                  • Description
                                    • Common options
                                    • cloudprofile add
                                    • cloudprofile show
                                    • cloudprofile update
                                    • cloudprofile delete
                                    • Synopsis
                                    • Description
                                      • Common options
                                      • cloud list instances
                                      • cloud list images
                                      • Synopsis
                                      • Description
                                        • Common options
                                        • cloud instance create
                                        • cloud instance info
                                        • cloud instance termination
                                        • cloud instance start
                                        • cloud instance pause
                                        • Synopsis
                                        • Description
                                          • Common options
                                          • cloud image create
                                          • cloud image info
                                          • cloud image delete
                                          • cloud image import
                                          • cloud image export

                                          1.12. Removing and Moving Virtual Machines

                                          You can remove a VM from Oracle VM VirtualBox or move the VM and its associated files, such as disk images, to another location on the host.

                                          Removing a VM. To remove a VM, right-click on the VM in the VirtualBox Manager’s machine list and select Remove .

                                          The confirmation dialog enables you to specify whether to only remove the VM from the list of machines or to remove the files associated with the VM.

                                          Note that the Remove menu item is disabled while a VM is running.

                                          Moving a VM. To move a VM to a new location on the host, right-click on the VM in the VirtualBox Manager’s machine list and select Move .

                                          The file dialog prompts you to specify a new location for the VM.

                                          When you move a VM, Oracle VM VirtualBox configuration files are updated automatically to use the new location on the host.

                                          Note that the Move menu item is disabled while a VM is running.

                                          You can also use the VBoxManage movevm command to move a VM. See Section 7.9, “VBoxManage movevm”.

                                          For information about removing or moving a disk image file from Oracle VM VirtualBox, see Section 5.3, “The Virtual Media Manager”.

                                          Copyright © 2004, 2020 Oracle and/or its affiliates. All rights reserved. Legal Notices

                                          Как удалить виртуальную машину в virtualbox

                                          Как удалить VirtualBox полностью

                                          Стоит ли удалять VirtualBox

                                          Как удаляют Virtual Box

                                          Удаление Виртуал Бокс через ПУ

                                          Удаление VirtualBox через ПУ

                                          Как удалить ВиртуалБокс

                                          Удаление ВиртуалБокс

                                          • RegClean;
                                          • Wise Case 365;
                                          • Ускоритель Компьютера;
                                          • Wise Registry Cleaner;
                                          • Auslogics Registry Cleaner.

                                          Создание и настройка виртуальной машины в VirtualBox

                                          Создание виртуальной машины в VirtualBox

                                          главное окно virtualbox

                                          тип ОС

                                          объем памяти

                                          • Не подключать виртуальный жесткий диск — вы можете подключить виртуальный жесткий диск после создания виртуальной машины.
                                          • Создать новый жесткий диск — будет создан новый виртуальный жесткий диск.
                                          • Использовать существующий виртуальный жесткий диск — к виртуальной машине будет подключен ранее созданный виртуальный жесткий диск.

                                          жесткий диск

                                          • VDI (VirtualBox Disk Image) — формат диска VirtualBox.
                                          • VMDK (Virtual Machine Disk) — формат диска VMware.
                                          • VHD (Virtual Hard Disk) — формат диска Microsoft.
                                          • HDD (Parallels Hard Disk) — формат диска Parallels.
                                          • QED (QEMU enhanced disk) — формат для QEMU/KVM.
                                          • QCOW (QEMU Copy-On-Write) — формат для QEMU (qcow2).

                                          тип жесткого диска

                                          формат хранения

                                          имя и размер файла

                                          виртуальная машина

                                          Настройки виртуальной машины в VirtualBox

                                          • Выключен — настройка по умолчанию.
                                          • Из основной в гостевую ОС — вы можете перемещать информацию из основной системы в виртуальную ОС.
                                          • Из гостевой в основную ОС — вы можете перемещать данные из виртуальной ОС в основную систему.
                                          • Двунаправленный — данными можно будет обмениваться в обоих направлениях.

                                          буфер обмена

                                          материнская плата

                                          дисплей

                                          носители

                                          выбор образа системы

                                          Удаление виртуальной машины в VirtualBox

                                          удалить виртуальную машину

                                          VirtualBox

                                          How to Delete a Virtual Machine from VirtualBox

                                          How to delete virtual machine from VirtualBox

                                          Finished with a virtual machine and you want to delete it from VirtualBox? Maybe you setup a VM you no longer need, or cloned an OS VM and want to remove it, or perhaps you’re simply aiming to free up disk space by removing virtual machines from VirtualBox, whatever the reason it’s a simple process to delete a virtual machine from VirtualBox.

                                          The instructions we’ll cover here work for completely removing an OS and deleting the associated virtual machine from within VirtualBox on Mac OS, Windows, and Linux. We’ll also show you how to delete a virtual machine from VirtualBox by using the command line.

                                          How to Completely Remove an OS and Delete a Virtual Machine in VirtualBox

                                          To completely delete any virtual machine from VirtualBox on Mac, Windows, or Linux, simply do the following:

                                          1. Open VirtualBox and go to the VM VirtualBox Manager screen
                                          2. Select the virtual machine and OS you want to delete (quit the VM if it’s currently active first)
                                          3. Right-click on the virtual machine name in the list and choose “Remove”, or optionally pull down the “Machine” menu and choose “Remove”

                                          How to delete a virtual machine in VirtualBox

                                          How to delete a virtual machine from VirtualBox

                                          * If you choose “Remove only” than the virtual machine is simply removed from the VirtualBox VM manager, but none of the actual files or associated VM, OS, VDI, or anything else is deleted. Thus if you actually want to delete the VM and associated files, choose ‘Delete all files’

                                          How to Delete a Virtual Machine from VirtualBox by Command Line

                                          If you prefer to use the command line, you can also completely delete a virtual machine from VirtualBox from a terminal. To use this approach, launch the command line (Terminal in MacOS) and then use the VBoxManage command tool with the following syntax: (note the flag –delete has two dashes)

                                          VBoxManage unregistervm —delete «Name of Virtual Machine»

                                          Deleting a VM from VirtualBox by command line is very thorough and removes all associated virtual hard disk image files, saved states, xml files, backups, VM logs, and all associated directories with the target VM to delete.

                                          It doesn’t really matter if you delete the virtual machine from the command line or from the VirtualBox application directly, both get the job done.

                                          Deleting a virtual machine from VirtualBox will free up any storage space that was taken up by that VM and associated OS, including the associated VDI, VMDK, VHD or HDD files. Because virtual machines can be quite large, this is often many gigabytes in size.

                                          Note this is aimed at deleting a virtual machine within VirtualBox but otherwise preserving other VMs and VirtualBox itself, it’s not attempting to remove or uninstall VirtualBox as an application though you can of course do that if needed too with these instructions.

                                          Virtual machines offer an easy way to run multiple operating systems at the same time, which is why they’re frequently used in development environments for testing with various operating systems. This particular article is obviously focused on VirtualBox, but there are other VM software packages available too including VMWare and Parallels.

                                          VirtualBox is particularly appealing to many users not only because it’s powerful and cross platform compatible able to run on Mac, Windows, and Linux, but also because it’s free. VirtualBox can do everything from run Windows 10 in a VM all the way back to old versions of Windows with old Internet Explorer versions, or Ubuntu Linux or another Linux distribution or unix flavor, and even Mac OS X (though if you want to virtualize MacOS it’s easier to do so with Parallels) and other operating systems too.

                                          If the general topic of virtualization appeals to you, check out our other virtual machine posts here where you can find tons of tutorials on running a wide range of operating systems in VirtualBox.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *