부서 computer 들을 windows 10 20H2 로 upgrade 하려고 했었다. 가장 큰 이유는 WSL 2의 손쉬운 사용.
1809 / 190X 에도 WSL 2 를 활성화 시킬 수 있지만, User Land 작업을 거의 완벽히 싫어하는 게 분위기라, 고민하고 있었는데, multipass 가 1.5 이상을 올라가면서, virtualbox 생성 위치를 Sytem Profile 밑이 아니라 지정할 수 있게 환경변수가 지원되면서 가능해져 보인다.
MULTIPASS_STORAGE
Environment Variable 의 사용기존에 SYSTEM 계정으로 VirtualBox 가 실행될 때, %LOCALAPPDATA% 에 VirtualBox 가 생성되므로, 여러 단점들이 있었는데, 해소가능하게 되었다.
MULTIPASS_STORAGE
환경 변수를 적용하면 된다.
C:\Windows\System32\config\systemprofile\AppData\Local\multipassd>tree
폴더 PATH의 목록입니다.
C:.
└─cache
├─network-cache
│ ├─data8
│ │ ├─0 ...
│ └─prepared
└─virtualbox
└─vault
└─images
└─focal-20210223
# After Assign %MULTIPASS_STORAGE% in System Environment Directory
$ c:\opt\bin\gtree -dL 5
.
|-- Storage
| |-- cache
| | |-- network-cache
| | | |-- data8
| | | | |-- 0
| | | | |-- e
| | | | `-- f
| | | `-- prepared
| | `-- virtualbox
| | `-- vault
| | `-- images
| `-- data
| |-- certificates
| |-- registered-certs
| |-- ssh-keys
| `-- virtualbox
| `-- vault
| `-- instances
|-- bin
| `-- platforms
`-- fonts
It seems mulitpass windows installer is based on NSIS installer, silent option to be /S.
C:\Windows\System32\config\systemprofile\AppData\Local\multipassd>type multipassd.conf
[General]
local.driver=virtualbox
MULTIPASS_STORAGE
should be set other location not in System account's %LOCALAPPDATA%$ dir *.exe /b
vbox-img.exe
VBoxAutostartSvc.exe
VBoxBalloonCtrl.exe
VBoxBugReport.exe
VBoxDTrace.exe
VBoxExtPackHelperApp.exe
VBoxHeadless.exe
VBoxManage.exe
VBoxNetDHCP.exe
VBoxNetNAT.exe
VBoxSDL.exe
VBoxSDS.exe
VBoxSVC.exe
VBoxTestOGL.exe
VBoxWebSrv.exe
VirtualBox.exe
VirtualBoxVM.exe
multipass set local.driver=virtualbox
start /wait "" "mulitpass....exe" /SD=C:\opt\multipass
https://nsis.sourceforge.io/Which_command_line_parameters_can_be_used_to_configure_installers%3F
/D=C:\Bla or /D=C:\Path with spaces
Set installation folder ($INSTDIR)
Must be the last parameter on the command line and must not contain quotes even if the path contains blank spaces.
Related to: $INSTDIR