顯示具有 Proxmox 標籤的文章。 顯示所有文章
顯示具有 Proxmox 標籤的文章。 顯示所有文章

2014年12月23日 星期二

[Proxmox] 無法更新 apt-get update error

Proxmox VE 3.x

 
apt-get update
Failed to fetch https://enterprise.proxmox.com/debian/dists/wheezy/pve-enterprise/binary-amd64/Packages The requested URL returned error: 401 Some index files failed to download. They have been ignored, or old ones used instead.
   
cat /etc/apt/sources.list.d/pve-enterprise.list
deb https://enterprise.proxmox.com/debian wheezy pve-enterprise

編輯pve-enterprise.list,並在路徑前加入“#”

nano /etc/apt/sources.list.d/pve-enterprise.list
# deb https://enterprise.proxmox.com/debian wheezy pve-enterprise

編輯sources.list,
並加入deb http://download.proxmox.com/debian wheezy pve-no-subscription
nano /etc/apt/sources.list
deb http://ftp.debian.org/debian wheezy main contrib

# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian wheezy pve-no-subscription

# security updates
deb http://security.debian.org/ wheezy/updates main contrib

網頁按下Refresh, 下方便出現可更新項目元件。

2014年12月19日 星期五

[Proxmox] USB physical port mapping / 新增USB裝置至虛擬主機

新增HP Laser Jet 1020 Printer至Win7 虛擬主機.



Setp 1:

查詢虛擬主機所連接的Port位

qm monitor <VM_ID> 
qm> info usbhost


















根據上圖,HP 1020印表機位置在Bus 1 、 Port 1
因此要寫入設定檔時,必須寫入1-1
  • Bus 1, Port 1 => 1-1


如連接的設備遇到Port 連續顯示時,寫入方式如下:
  •  Bus 1, Port 1, Port 3 => 1-1.3



Setp 2:

編輯虛擬主機設定檔

nano /etc/pve/qemu-server/<VM_ID>.conf 














新增一筆USB裝置
usb0:host=1-1



Setp 3:

開啟虛擬主機(Win7),查看裝置管理員,
則出現USB列印支援,印表機也出現HP 1020




[Game] Rimworld enable Dev mode (for Mac)

In Finder Press Command+Shift+Dot to open hidden folder /Users/[user name]/Library/Application Support/RimWorld/Config/DevModeDisable Dele...