Thaum tsim kom muaj lub tshuab virtual hauv VirtualBox, tus neeg siv yuav tsum qhia kom meej tias tus nqi uas nws xav faib rau cov kev xav tau ntawm cov qhua OS. Muaj qee zaum, tus lej qes ntawm cov sij hawm yuav raug tso tseg kom tsis txaus, thiab tom qab ntawd ces lo lus nug ntxiv ntawm kev nce cov nqi ntawm virtual cia yuav yog qhov tseem ceeb.
Txoj kev yuav nce disk loj hauv VirtualBox
Nws tsis yog ib txwm ua tau kom yog xam tus me me uas yuav tsum tau muaj tom qab kev txhim kho lub tshuab hauv VirtualBox. Vim li no, qee cov neeg siv raug teeb meem nrog qhov chaw tsis muaj chaw nyob hauv cov qhua OS. Muaj ob txoj hauv kev ntxiv qhov chaw dawb mus rau lub tshuab fais fab uas tsis pub siv cov duab:
- Siv lub tshuab fais fab tshwj xeeb los ntawm VirtualBox;
- Ntxiv ib qho thib ob lub tshuab nyuaj virtual.
Method 1: VBoxManage Utility
VirtualBox muaj lub VBoxManage nqi hluav taws xob hauv nws lub arsenal uas tso cai rau koj los tswj qhov ntau thiab tsawg ntawm daim ntawv hais kom ua los sis qhov kawg ntawm cov kev khiav hauj lwm. Peb yuav xav txog txoj haujlwm ntawm qhov kev qhia no hauv Windows 10 thiab CentOS. Cov xwm txheej kev hloov pauv hauv cov OS no yog raws li nram no:
- Cia lub hom phiaj: dynamic;
- Tsav Yam: VDI lossis VHD;
- Tshuab mob: tawm.
Ua ntej pib qhov kev hloov, koj yuav tsum paub qhov luaj li cas ntawm tus qhua OS disk thiab txoj kev uas lub tshuab fais fab siv. Qhov no yuav ua tau los ntawm Tus Thawj Tswj Tus Thawj Tuav Haujlwm.
Rau ntawm lub tshuab raj, xaiv "Cov Ntaub Ntawv" > "Tus Thawj Saib Xyuas Kev Vam Meej" los yog nias xwb Ctrl + D.
Lub voj voos yuav muab tso rau sab nraum lub OS, thiab yog tias koj xaiv nws nrog lub nias, qhov chaw qhia yuav tshwm sim hauv qab no.
Siv VBoxManage hauv Windows
- Ua kom muaj lus ceeb toom sai sai nrog cov cai tswj xyuas.
- Sau cov lus txib:
CD C: Program Files Oracle VirtualBox
Qhov no yog txoj kev rau nruab VirtualBox. Yog tias Oracle daim nplaub tshev nrog cov ntaub ntawv nyob hauv lwm qhov chaw, tom qab CD, sau nws qhov chaw.
- Thaum hloov cov npe, sau cov lus qhia nram qab no:
vboxmanage modifyhd "Kab rau virtual tshuab" --resize 33792
Piv txwv li:
vboxmanage modifyhd "D: Virtualbox VMs Windows 10 Windows 10.vdi" --resize 33792
"D: Virtualbox VMs Windows 10 Windows 10.vdi"
- txoj kev uas lub tshuab virtual nws tus kheej muab cia rau hauv hom ntawv .vdi (nco cov quotes - tsis yog lawv qhov kev hais kom ua tsis ua haujlwm).--resres 33792
- tus cwj pwm uas muab tso rau hauv qhov chaw ntawm cov lus cim kaw. Nws qhia tau hais tias qhov tshiab disk me me hauv megabytes.Yuav tsum ceev faj, qhov attribute no tsis ntxiv tus zauv ntawm cov zauv ntawm megabytes (hauv peb qhov teeb meem 33792) rau tus uas twb muaj lawm, tab sis hloov qhov teeb meem tam sim no. Hauv virtual tshuab, uas tau coj los ua ib qho piv txwv, yav dhau los muaj ib qhov luaj li cas ntawm 32 GB, thiab nrog kev pab ntawm qhov attribute nws tau nce mus rau 33 GB.
Tom qab hloov siab hloov qhov loj me me, koj yuav tsum configure virtual OS nws tus kheej, vim nws yuav pom tus xov tooj ntawm GB dhau los.
- Pib ua haujlwm.
- Nyem Yeej + R thiab sau nqe lus txib diskmgmt.msc.
- Lub ntsiab virtual disk yog tso tawm kom pom hauv xiav. Tom ntej no nws yuav yog qhov chaw ntxiv ntawm VBoxManage company - nws yog cim hauv dub thiab muaj txheej xwm "Tsis muab faib". Qhov no txhais tau hais tias cov ntaub ntawv muaj cheeb tsam tshwm sim, tab sis qhov tseeb tsis tuaj yeem siv, piv txwv, khaws cov ntaub ntawv.
- Ntxiv ntim rau qhov chaw ua hauj lwm virtual, nias ntawm lub ntsiab disk (feem ntau C :) nrog lub pob khawm thiab xaiv qhov kev xaiv "Nthuav Cawm".
- Tus ua haujlwm ua haujlwm nrog kev ua haujlwm.
- Tsis txhob hloov qhov chaw yog tias koj xav ntxiv rau tag nrho cov uas twb muaj lawm, thiab mus rau kauj ruam tom ntej.
- Nyem "Ua li cas".
- Tam sim no koj pom tau tias (C :) tau ua raws nraim 1 GB ntau, uas tsis tau muab faib ua ntej, thiab qhov chaw uas cim rau dub tau zoo. Qhov no txhais tau hais tias lub virtual disk tau nce nyob rau hauv qhov loj thiab muaj peev xwm tseem siv tau.
Cov kev nqis peev uas ntxiv tau yog tshwj xeeb heev rau ntawm qhov rais 7 thiab saum toj no. Windows XP tsis txhawb qhov peev xwm los nthuav qhov ntim, yog li koj yuav tsum siv cov kev pabcuam thib peb xws li Acronis Disk Director.
Siv VBoxManage hauv Linux
Koj yuav tsum muaj txoj cai hauv paus ua haujlwm nrog lub davhlau ya nyob twg thiab qhov chaw ua haujlwm.
- Sau npe pab neeg
vboxmanage sau -l hdds
- Hauv UUID kab, luam tus nqi thiab muab nws tso rau hauv cov lus txib no:
vboxmanage modifyhd YOUR_UUID --resize 25600
- Khiav lub chaw pabcuam hauv GParted. Ua rau nws bootable, nyob rau hauv VirtualBox Manager, mus rau lub tshuab nqis.
- Hloov mus rau seem "Muaj"thiab nyob rau hauv "Xws li: IDE" Ntxiv cov downloaded GParted Live. Ua li no, nyem rau ntawm "Npliag" thiab ntawm sab xis, xaiv cov duab ntawm lub disk qhov muag nrog lub chaw tso dej hauv GParted, raws li qhia hauv lub screenshot.
- Txuag qhov chaw thiab pib lub tshuab.
- Hauv khau raj, xaiv "GParted Live (Qhov chaw pib)".
- Tus configurator hais kom koj xaiv ib qho layout. Qhov kev xaiv no tsis tseem ceeb rau kev nthuav tawm disk, yog li koj tuaj yeem xaiv cov kev xaiv.
- Qhia kom meej yam lus los ntawm kev nkag mus rau nws tus xov tooj.
- Thaum nug txog koj hom dua, sau lo lus teb. "0".
- GParted yuav pib. Tag nrho cov seem yuav tshwm nyob rau hauv lub qhov rais, nrog rau cheeb tsam ntxiv ntawm VBoxManage.
- Txoj cai-nias ntawm qhov muab faib qhov system qhib lub ntsiab lus teb ntawv qhia (feem ntau yog sda2), thiab xaiv "Hloov cov seem los yog txav".
- Siv lub pob qhov rooj los yog cov tswv yim teb, teem lub ntim uas koj xav muab nthuav tawm hauv seem. Ua li no, txav mus rau ntawm txoj cai:
Xws li hauv thaj teb "Tshiab Me Nyuam" Ntaus tus naj npawb hauv kab "Qhov Siab Tshaj Plaws".
- Qhov no yuav tsim ib lub lag luam uas tau teem tseg.
- Rau ntawm qhov toolbar, nyem Kho kom raug > "Thov txhua qhov haujlwm" los yog nias rau ntawm cov txheej txheem zov me nyuam tshaj plaws nrog tus nas khawm thiab xaiv nws daim ntawv thov.
- Hauv qhov kev pom zoo, nyem rau "Thov".
- Kev nce qib yuav tshwm nyob hauv ib lub qhov rai txawv.
- Thaum ua tiav, koj yuav pom tias qhov luaj li cas ntawm virtual disk tau dhau los lawm.
- Koj tuaj yeem tua lub tshuab fais fab thiab tshem tawm ntawm GParted Live xov xwm tawm ntawm nws qhov chaw khau raj.
Hauv Linux, nws tsis tuaj yeem tsim ib qhov muab faib thaum OS cia nws khiav haujlwm.
Txoj kev 2: Tsim kom tau ib tus thib ob hauv kev tsav tsheb
Txoj kev hloov pauv nto ntawv siv lub VBoxManage utility tsis yog tib qho thiab tsis yog qhov zoo tshaj plaws. Nws yog ib qho yooj yim dua mus txuas rau lub thib ob tsav tsheb mus rau lub tshuab tsim.
Tau kawg, nws ua rau kev txiav txim siab los tsim tau ib qho thib ob yog tias koj npaj kom muaj peev xwm ntawm tus tsav, thiab tsis npaj yuav khaws cov ntaub ntawv (loj).
Rov ua dua, xav txog txoj kev ntxiv ib tsav ntawm cov qauv ntawm qhov rais 10 thiab CentOS.
Tsim ib qho ntxiv tsav hauv VirtualBox
- Xaiv lub tshuab fais fab thiab nias rau lub khawm ntawm qhov toolbar. "Kho dua".
- Hloov mus rau seem "Muaj"Nias ntawm lub cim los tsim qhov HDD tshiab virtual thiab xaiv "Ntxiv zog tsav".
- Nyob hauv lo lus nug qhov rai, siv qhov kev xaiv "Tsim ib qho tshiab disc".
- Tsav Yam - VDI.
- Hom ntawv - Dynamic.
- Lub npe thiab loj - ntawm koj qhov kev pom zoo.
- Koj lub disk yuav tshwm nyob rau hauv daim ntawv teev npe cia, txuag cov chaw los ntawm txhaj rau "OK".
Siv qhov nruab nrab ntawm lub khoos phis hauv qhov rais
Tom qab txuas tus tsav, qhov OS yuav tsis pom qhov HDD ntxiv, vim nws tsis tau pib dua.
- Pib lub tshuab fais fab.
- Nyem Yeej + Rnkag rau pab neeg diskmgmt.msc.
- Koj yuav tsum muaj qhov rais khiav uas yuav tsum tau pib. Tsis txhob hloov cov nqis thiab nias "OK".
- Tus tshiab tsav yuav tshwm rau hauv qab ntawm qhov rais, tab sis nws cheeb tsam tseem tsis tau koom tes. Kom nws pab, nias nas "Tsim ib qho yooj yim".
- Ib qho hluav taws xob tshwj xeeb yuav qhib. Hauv qhov kev txais tos, nias "Tom ntej".
- Tsis txhob hloov qhov chaw nyob rau theem no.
- Xaiv ib tsab ntawv ntim los yog ua kom nws tsis pom tseeb.
- Formatting xaiv tsis tau hloov. Yog tias xav tau, hauv lub tshav pob "Ntim Tag" Koj tuaj yeem sau npe (feem ntau lub npe "Local Disk").
- Nyem "Ua li cas".
- Drive status yuav hloov thiab nws yuav tsum paub los ntawm lub system.
Tam sim no lub disk yog pom hauv Explorer thiab npaj txhij rau kev ua haujlwm.
Siv lub tshuab ua virtual hauv Linux
Tsis zoo li lub qhov rais, Linux distributions tsis tas yuav pib ua cov drives. Tom qab tsim thiab txuas cov disk mus rau lub tshuab virtual, nws tseem mus xyuas seb puas tsav puas yam tiav.
- Pib lub virtual OS.
- Qhib cov kev pabcuam yooj yim rau kev tswj hwm hluav taws xob thiab saib yog tias tus tsim thiab kev sib txuas ntawm cov tsav tau tso tawm kom pom muaj.
- Piv txwv, nyob rau hauv qhov kev pab cuam GParted, koj yuav tsum hloov ntawm tus dev / sda / sda muab faib rau / dev / sdb - qhov no yog cov tsav tsheb. Yog tias tsim nyog, nws tuaj yeem muab teeb tsa thiab ua lwm yam.
Cov no yog cov feem ntau thiab cov kev xaiv yooj yim rau kev ua kom qhov luaj li cas ntawm lub tshuab virtual disk hauv VirtualBox. Tsis txhob hnov qab ua luam qauv ntawm cov kev khiav hauj lwm tseem ceeb yog tias koj txiav txim siab siv VBoxManage utility, thiab xyuas kom tseeb tias lub ntsiab disk, los ntawm qhov chaw qhov chaw tseg rau lub virtual drive, muaj chaw txaus dawb.