검색결과 리스트
글
vagrant 설정
vagrant virtualbox 설정 참고
https://hakurei.tistory.com/m/216?category=728797
[Vagrant] multiple vm cpu, memory 세팅
vagrant의 공식 reference에 보면, cpu, memory에 대해서 설정하는 부분이 나와있지만, global하게 설정하는 방법밖에 나와있지 않다. (https://www.vagrantup.com/docs/virtualbox/configuration.html) 대충 아래..
hakurei.tistory.com
config.vm.network "forwarded_port", guest: 80, host: 8080
# CPU, 메모리 추가
vb.customize ["modifyvm", :id, "--ioapic", "on"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--memory", "2048"]
# 하드 추가
config.vm.provider "virtualbox" do |vb|
# # Don't boot with headless mode
# vb.gui = true
file_to_disk = File.realpath( "." ).to_s + "/disk.vdi"
file_to_disk2 = File.realpath( "." ).to_s + "/disk2.vdi"
if ARGV[0] == "up" && ! File.exist?(file_to_disk)
puts "Creating 1GB disk #{file_to_disk}."
vb.customize [
'createhd',
'--filename', file_to_disk,
'--format', 'VDI',
'--size', 1 * 1024 # 200 GB
]
vb.customize [
'storageattach', :id,
'--storagectl', 'SATA',
'--port', 1, '--device', 0,
'--type', 'hdd', '--medium',
file_to_disk
]
end
if ARGV[0] == "up" && ! File.exist?(file_to_disk2)
puts "Creating 1GB disk #{file_to_disk2}."
vb.customize [
'createhd',
'--filename', file_to_disk2,
'--format', 'VDI',
'--size', 1 * 1024 # 200 GB
]
vb.customize [
'storageattach', :id,
'--storagectl', 'SATA',
'--port', 2, '--device', 0,
'--type', 'hdd', '--medium',
file_to_disk2
]
end
#
# # Use VBoxManage to customize the VM. For example to change memory:
# vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--ioapic", "on"]
# vb.customize ["modifyvm", :id, "--cpus", "2"]
vb.customize ["modifyvm", :id, "--memory", "2048"]
end
'컴퓨터' 카테고리의 다른 글
| virtualbox centos7 pxe 설치 (0) | 2019.11.27 |
|---|---|
| 인터넷 도메인 domain 검색 (0) | 2019.11.22 |
| Decision trees in python with scikit-learn and pandas (0) | 2019.11.07 |
| Virtualbox에서 cento6 pxe kickstart로 설치하기 (0) | 2019.10.24 |
| pix2pix (0) | 2019.10.23 |
