From owner-freebsd-cloud@freebsd.org Wed Dec 23 06:55:21 2020 Return-Path: Delivered-To: freebsd-cloud@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E55EE4B5586 for ; Wed, 23 Dec 2020 06:55:21 +0000 (UTC) (envelope-from bhughes@FreeBSD.org) Received: from forward1-smtp.messagingengine.com (forward1-smtp.messagingengine.com [66.111.4.223]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4D13qs4YyCz4R58 for ; Wed, 23 Dec 2020 06:55:21 +0000 (UTC) (envelope-from bhughes@FreeBSD.org) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailforward.nyi.internal (Postfix) with ESMTP id DA2A11942F36; Wed, 23 Dec 2020 01:55:20 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Wed, 23 Dec 2020 01:55:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=1dpS4xdppubH0hFOWMDsNlVLuObO765tBxvS5Fvtt nQ=; b=N8JA7zd8s6wWmoX+dRlJoQcFAMWkigdJ2+d+bhEjpddFrp4YUZZAql0hO aO5cCf80gF3tJl3wbXgPreNhFAu9AUnermQMRxT5f7BxC2e63lwjrSQPpqmpr9WR 1l4gO/tIQ/a+wHebDQ8hBU4ys3rRfDkbE/GPMA5VSSOjHB0IJqswQ/q5iwrhTL52 T3gh8/95BQcnkDWAWP6VxXAEdAMJ7rhBYpg00m+c4TTofHrcbfv7TFj3ZMg+lG+S rHn12Gwf7w/TlZsHAubnZFfSauUgJksUmJbrqJbupOtsrANMbiDIjxVlM7DftWYA qCGgceToIdilnSRdBghYE+Sd6gEoA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvddtiedgieefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvkfgjfhfuofggtgfgugesth ejmhdtredtjeenucfhrhhomhepfdeurhgrughlvgihucfvrdcujfhughhhvghsfdcuoegs hhhughhhvghssefhrhgvvgeuufffrdhorhhgqeenucggtffrrghtthgvrhhnpedttddtue ffieeufeefveejtdeiueejjeeiueefkedtgedtvdfgteduhedtgfegfeenucffohhmrghi nhepfhhrvggvsghsugdrohhrghenucfkphepkeekrdeluddrkeelrddujeegnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsghhuhhghhgvshes hfhrvggvuefuffdrohhrgh X-ME-Proxy: Received: from greenmile (ti0081a400-0173.bb.online.no [88.91.89.174]) by mail.messagingengine.com (Postfix) with ESMTPA id D47D124005E; Wed, 23 Dec 2020 01:55:19 -0500 (EST) Date: Wed, 23 Dec 2020 07:55:16 +0100 From: "Bradley T. Hughes" To: tech-lists Cc: "=?utf-8?Q?freebsd-cloud=40freebsd.org?=" Message-ID: In-Reply-To: References: Subject: Re: resizing a FreeBSD 12.1 vm on Azure X-Mailer: Mailspring MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Rspamd-Queue-Id: 4D13qs4YyCz4R58 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; ASN(0.00)[asn:11403, ipnet:66.111.4.0/24, country:US] X-BeenThere: freebsd-cloud@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: "FreeBSD on cloud platforms \(EC2, GCE, Azure, etc.\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Dec 2020 06:55:22 -0000 On Dec 22 2020, at 1:45 am, tech-lists wrote: > Hello, Howdy! > Has anyone ever resized a freebsd vm on Azure? I don't mean just the > disks. > Really the whole point is to have more CPU and RAM. I have the option > to do > this via their portal, just select whats required and hit 'resize' but > I'm > a bit hesitant. I guess it'll work on a windows VM but anything else? Yes, I do this all the time. I run a poudriere builder in Azure, and normally I only use the D4as_v4 VM size. Sometimes, though, I resize to a D16as_v4 to be able to build the www/node* ports more quickly. I just resize it using the az CLI: $ az vm resize --name poudriere --resource-group poudriere --size Standard_D16as_v4 > If you did manage to do this, did you need to shut the VM down before > resizing it? Was your external IP preserved or did it force you to > have > another one? Did you have to run anything else, like growfs? Yes, to resize, the VM has to be rebooted. I haven't payed attention to whether my public IP is preserved or not (I access the VM using the DNS name I configured in the portal). My gut feeling is that the IP is preserved, just like it is across normal reboots. I haven't resized the root volume on the VM. Instead, I have a second volume attached with ZFS on it, and I put everything that matters on that. > The author of https://forums.freebsd.org/threads/azure-vm.62440/ tried > to do this in 2017 but wasn't able to at the time. > > thanks, > -- > J. -- Bradley T. Hughes bhughes@FreeBSD.org